Skip to content

Commit 9166fc7

Browse files
committed
Fix typo in comment
1 parent f8d3df7 commit 9166fc7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

testssl.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2578,17 +2578,18 @@ connectivity_problem() {
25782578

25792579

25802580
sanitze_http_header() {
2581-
# sp,e sed implementations tested were sometime not fine with HTTP headers containing x0d x0a (CRLF) which is
2582-
# usuallly the case. Also we use tr here to remove any crtl chars which the server side offers --> possible
2583-
# security problem. Only allowed now is LF + CR. See #2337. awk, see above, doesn't seem to care -- not under MacOS.
2581+
# some sed implementations were sometime not fine with HTTP headers containing x0d x0a (CRLF: usual case)
2582+
# Also we use tr here to remove any crtl chars which the server side offers --> possible security problem.
2583+
# Only allowed now is LF + CR. See #2337. awk, see above, doesn't seem to care -- not under MacOS.
2584+
25842585
sed -e '/^$/q' -e '/^[^a-zA-Z_0-9]$/q' $1 | tr -d '\000-\011\013\014\016-\037' >$1.tmp
25852586
# Now to be more sure we delete from '<' or '{' maybe with a leading blank until the end (HTTP body)
25862587
sed -e '/^ *<.*$/d' -e '/^ *{.*$/d' $1.tmp >$1
25872588
debugme echo -e "---\n $(< $1) \n---"
25882589
}
25892590

25902591

2591-
#problems not handled: chunked
2592+
# problems not handled: chunked
25922593
#
25932594
run_http_header() {
25942595
local header

0 commit comments

Comments
 (0)