File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2578,17 +2578,18 @@ connectivity_problem() {
25782578
25792579
25802580sanitze_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#
25932594run_http_header() {
25942595 local header
You can’t perform that action at this time.
0 commit comments