From 4f6c45f6bef36f8033bb9f93cfdcff050d3f0b02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 27 Jul 2022 14:01:29 +0200 Subject: [PATCH] Squashed 'cgilite/' changes from 5038774..9a07596 9a07596 bugfix/typo: correct transformation of header fields into web server variable names git-subtree-dir: cgilite git-subtree-split: 9a075962cbcf68050e57afa257bae4232cc197ee --- cgilite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgilite.sh b/cgilite.sh index 2193e29..b51ee8e 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -264,7 +264,7 @@ HEADER(){ str="${str#*${BR}${1}: }" printf %s "${str%%${BR}*}" else - local var="HTTP_$(printf %s "$1" |tr a-z- A-Z-)" + local var="HTTP_$(printf %s "$1" |tr a-z- A-Z_)" eval "[ \"\$$var\" ] && printf %s \"\$$var\" || return 1" # eval "printf %s \"\$HTTP_$(printf %s "${1}" |tr a-z A-Z |tr -c A-Z _)\"" fi -- 2.39.2