From 14625170df9e56e7eb2abf9c41c0b32cbd6577fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 30 Sep 2020 10:32:35 +0200 Subject: [PATCH] escape CR and TAB in URLs --- cgilite.sh | 2 ++ 1 file changed, 2 insertions(+) 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#?}"}";; -- 2.39.2