]> git.plutz.net Git - cgilite/blobdiff - cgilite.sh
avoid confusion regarding carriage return when escaping HTML (especially in textarea)
[cgilite] / cgilite.sh
index 2e538324c0a8b5ec45f6fb2235f254fcf359db22..32aa28bfb5c8cf165a7082e840634fb2e313ac42 100755 (executable)
@@ -202,6 +202,7 @@ HTML(){
       \'*) out="${out}'";;
       \[*) out="${out}[";;
       \]*) out="${out}]";;
+      "${CR}"*) out="${out}
";;
       "${BR}"*) out="${out}
";;
       *) out="${out}${str%"${str#?}"}";;
     esac