From 1d27862fc4c0ced76afb8bdfa04a9ab0f50208ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 16 Nov 2021 13:08:05 +0100 Subject: [PATCH] bugfix URL escaping for ? and % --- cgilite.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" } -- 2.39.2