From 3a5f8da6c094474cb5de33d40fc94e4497450a25 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 2 Jul 2018 03:04:55 +0200 Subject: [PATCH] fix builtin header parsing --- cgilite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2