From: Paul Hänsch Date: Mon, 7 Sep 2020 01:51:22 +0000 (+0200) Subject: avoid confusion regarding carriage return when escaping HTML (especially in textarea) X-Git-Url: http://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=00ba4b0222ec867cc1b629857defb6db4b403530 avoid confusion regarding carriage return when escaping HTML (especially in textarea) --- 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