mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-09-17 09:22:54 +02:00
Fix typo in comment
This commit is contained in:
@ -2578,9 +2578,10 @@ connectivity_problem() {
|
|||||||
|
|
||||||
|
|
||||||
sanitze_http_header() {
|
sanitze_http_header() {
|
||||||
# sp,e sed implementations tested were sometime not fine with HTTP headers containing x0d x0a (CRLF) which is
|
# some sed implementations were sometime not fine with HTTP headers containing x0d x0a (CRLF: usual case)
|
||||||
# usuallly the case. Also we use tr here to remove any crtl chars which the server side offers --> possible
|
# Also we use tr here to remove any crtl chars which the server side offers --> possible security problem.
|
||||||
# security problem. Only allowed now is LF + CR. See #2337. awk, see above, doesn't seem to care -- not under MacOS.
|
# Only allowed now is LF + CR. See #2337. awk, see above, doesn't seem to care -- not under MacOS.
|
||||||
|
|
||||||
sed -e '/^$/q' -e '/^[^a-zA-Z_0-9]$/q' $1 | tr -d '\000-\011\013\014\016-\037' >$1.tmp
|
sed -e '/^$/q' -e '/^[^a-zA-Z_0-9]$/q' $1 | tr -d '\000-\011\013\014\016-\037' >$1.tmp
|
||||||
# Now to be more sure we delete from '<' or '{' maybe with a leading blank until the end (HTTP body)
|
# Now to be more sure we delete from '<' or '{' maybe with a leading blank until the end (HTTP body)
|
||||||
sed -e '/^ *<.*$/d' -e '/^ *{.*$/d' $1.tmp >$1
|
sed -e '/^ *<.*$/d' -e '/^ *{.*$/d' $1.tmp >$1
|
||||||
@ -2588,7 +2589,7 @@ sanitze_http_header() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#problems not handled: chunked
|
# problems not handled: chunked
|
||||||
#
|
#
|
||||||
run_http_header() {
|
run_http_header() {
|
||||||
local header
|
local header
|
||||||
|
Reference in New Issue
Block a user