From: Paul Hänsch Date: Wed, 30 Sep 2020 08:34:12 +0000 (+0200) Subject: Squashed 'cgilite/' changes from 00ba4b0..1462517 X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=fe67294a5c9b198ad3dd383dcedf53fab0015e1c;p=invoices Squashed 'cgilite/' changes from 00ba4b0..1462517 1462517 escape CR and TAB in URLs git-subtree-dir: cgilite git-subtree-split: 14625170df9e56e7eb2abf9c41c0b32cbd6577fa --- 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#?}"}";;