From: Paul Hänsch Date: Mon, 2 Jul 2018 01:04:55 +0000 (+0200) Subject: fix builtin header parsing X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=3a5f8da6c094474cb5de33d40fc94e4497450a25;p=clickslide fix builtin header parsing --- diff --git a/cgilite.sh b/cgilite.sh index 9f2eedc..f0f2fa9 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -30,7 +30,7 @@ HEADER(){ # referencing HTTP_* environment variables. if [ -n "${cgilite_headers+x}" ]; then printf %s "$cgilite_headers" \ - | sed -rn 's;^'"${1}"': ([^\r]+)\r?$;\1;ip;q;' + | sed -rn 's;^'"${1}"': ([^\r]+)\r?$;\1;i; tX; d; :X;p;q;' else eval "printf %s \"\$HTTP_$(printf %s "${1}" |tr a-z A-Z |tr -c A-Z _)\"" fi