From 00ba4b0222ec867cc1b629857defb6db4b403530 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 7 Sep 2020 03:51:22 +0200 Subject: [PATCH 1/1] avoid confusion regarding carriage return when escaping HTML (especially in textarea) --- cgilite.sh | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.2