]> git.plutz.net Git - invoices/commitdiff
Squashed 'cgilite/' changes from 00ba4b0..1462517
authorPaul Hänsch <paul@plutz.net>
Wed, 30 Sep 2020 08:34:12 +0000 (10:34 +0200)
committerPaul Hänsch <paul@plutz.net>
Wed, 30 Sep 2020 08:34:12 +0000 (10:34 +0200)
1462517 escape CR and TAB in URLs

git-subtree-dir: cgilite
git-subtree-split: 14625170df9e56e7eb2abf9c41c0b32cbd6577fa

cgilite.sh

index 32aa28bfb5c8cf165a7082e840634fb2e313ac42..e145f2eebe173be82475cde1ec60fb200a14ed63 100755 (executable)
@@ -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#?}"}";;