X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=cgilite.sh;h=7eab08a5b4bc92691b34e7cdc3e61679f2f8d2b6;hp=8af3eb12790b998f59d8421778aff333c619ca53;hb=e2678dc719c2dcda2de9a6079ac63837681e1a26;hpb=d0c60cf4f8431e100a0a326931388e6d11a5fd56 diff --git a/cgilite.sh b/cgilite.sh index 8af3eb1..7eab08a 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")" } cgilite_keys(){