From: Paul Hänsch Date: Wed, 30 Sep 2020 08:32:35 +0000 (+0200) Subject: escape CR and TAB in URLs X-Git-Url: https://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=14625170df9e56e7eb2abf9c41c0b32cbd6577fa escape CR and TAB in URLs --- diff --git a/cgilite.sh b/cgilite.sh index 32aa28b..e145f2e 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -225,6 +225,8 @@ URL(){ \[*) out="${out}%5B";; \]*) out="${out}%5D";; \ *) out="${out}%20";; + " "*) out="${out}%09";; + "${CR}"*) out="${out}%0D";; "${BR}"*) out="${out}%0A";; %*) out="${out}%25";; *) out="${out}${str%"${str#?}"}";;