From: Paul Hänsch Date: Tue, 16 Nov 2021 12:08:05 +0000 (+0100) Subject: bugfix URL escaping for ? and % X-Git-Url: https://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=1d27862fc4c0ced76afb8bdfa04a9ab0f50208ef bugfix URL escaping for ? and % --- 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" }