From 00ba4b0222ec867cc1b629857defb6db4b403530 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Paul=20H=C3=A4nsch?= <paul@plutz.net>
Date: Mon, 7 Sep 2020 03:51:22 +0200
Subject: [PATCH] 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}&#x27;";;
       \[*) out="${out}&#x5B;";;
       \]*) out="${out}&#x5D;";;
+      "${CR}"*) out="${out}&#x0D;";;
       "${BR}"*) out="${out}&#x0A;";;
       *) out="${out}${str%"${str#?}"}";;
     esac
-- 
2.39.5