]> git.plutz.net Git - lobster/commitdiff
Squashed 'cgilite/' changes from 238f0f8..00ba4b0
authorPaul Hänsch <paul@plutz.net>
Mon, 7 Sep 2020 01:51:34 +0000 (03:51 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 7 Sep 2020 01:51:34 +0000 (03:51 +0200)
00ba4b0 avoid confusion regarding carriage return when escaping HTML (especially in textarea)

git-subtree-dir: cgilite
git-subtree-split: 00ba4b0222ec867cc1b629857defb6db4b403530

cgilite.sh

index 2e538324c0a8b5ec45f6fb2235f254fcf359db22..32aa28bfb5c8cf165a7082e840634fb2e313ac42 100755 (executable)
@@ -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