From: Paul Hänsch Date: Tue, 16 Nov 2021 12:08:19 +0000 (+0100) Subject: Squashed 'cgilite/' changes from 6147b0e..1d27862 X-Git-Url: http://git.plutz.net/?a=commitdiff_plain;h=4814ae28928f948f44bdf0b8823226120a442dfb;hp=f38e4332eb9d1244b9a421c6e34436aaccb541eb;p=serve0 Squashed 'cgilite/' changes from 6147b0e..1d27862 1d27862 bugfix URL escaping for ? and % git-subtree-dir: cgilite git-subtree-split: 1d27862fc4c0ced76afb8bdfa04a9ab0f50208ef --- diff --git a/cgilite.sh b/cgilite.sh index 03541b4..90d6557 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -313,7 +313,7 @@ URL(){ "${CR}"*) out="${out}%0D"; str="${str#?}";; "${BR}"*) out="${out}%0A"; str="${str#?}";; %*) out="${out}%25"; str="${str#?}";; - *) out="${out}${str%%[]&\"\'# ${CR}${BR}[]*}"; str="${str#"${str%%[]&\"\'# ${CR}${BR}[]*}"}";; + *) out="${out}${str%%[]&\"\'\?# ${CR}${BR}%[]*}"; str="${str#"${str%%[]&\"\'\?# ${CR}${BR}%[]*}"}";; esac; done printf %s "$out" }