From: Paul Hänsch Date: Mon, 12 Nov 2018 01:38:30 +0000 (+0100) Subject: Merge branch 'master' of git.plutz.net:cgilite X-Git-Url: http://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=5c24129a2347b2be54fedfec74acc156758e3533;hp=3a49d642c02f8577096cfd31a89cb07714a95215 Merge branch 'master' of git.plutz.net:cgilite --- diff --git a/cgilite.sh b/cgilite.sh index 1235077..a84de14 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -49,7 +49,7 @@ HEX_DECODE=' ' HEX_DECODE(){ - printf "$(printf %s "$1" |sed -r "$HEX_DECODE")" + printf -- "$(printf %s "$1" |sed -r "$HEX_DECODE")" } if [ -z "$REQUEST_METHOD" ]; then @@ -116,7 +116,7 @@ cgilite_value(){ str=${str#*&${name}=} cnt=$((cnt - 1)) done - printf "$(printf %s "${str%%&*}" |sed -r 's;\+; ;g;'"$HEX_DECODE")" + printf -- "$(printf %s "${str%%&*}" |sed -r 's;\+; ;g;'"$HEX_DECODE")" } GET(){ cgilite_value "${QUERY_STRING}" $@; }