From: Paul Hänsch Date: Mon, 7 Sep 2020 01:51:34 +0000 (+0200) Subject: Squashed 'cgilite/' changes from 238f0f8..00ba4b0 X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=2bdfa548929558e432eaef50cbfa79a91f9edd8b;p=lobster Squashed 'cgilite/' changes from 238f0f8..00ba4b0 00ba4b0 avoid confusion regarding carriage return when escaping HTML (especially in textarea) git-subtree-dir: cgilite git-subtree-split: 00ba4b0222ec867cc1b629857defb6db4b403530 --- diff --git a/cgilite.sh b/cgilite.sh index 2e53832..32aa28b 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -202,6 +202,7 @@ HTML(){ \'*) out="${out}'";; \[*) out="${out}[";; \]*) out="${out}]";; + "${CR}"*) out="${out} ";; "${BR}"*) out="${out} ";; *) out="${out}${str%"${str#?}"}";; esac