]> git.plutz.net Git - cgilite/blobdiff - cgilite.sh
escape CR and BR in HTML output (as previously specified)
[cgilite] / cgilite.sh
index b47a3e2e683219b773af4383059a6701f2d44d46..2193e29ff90069b181db9475c439c89f34e5f529 100755 (executable)
@@ -294,7 +294,7 @@ HTML(){
     \]*) out="${out}]";      str="${str#?}";;
     "${CR}"*) out="${out}
"; str="${str#?}";;
     "${BR}"*) out="${out}
"; str="${str#?}";;
-    *) out="${out}${str%%[]&<>\"\'[]*}"; str="${str#"${str%%[]&<>\"\'[]*}"}";;
+    *) out="${out}${str%%[]&<>\"\'${CR}${BR}[]*}"; str="${str#"${str%%[]&<>\"\'${CR}${BR}[]*}"}";;
   esac; done
   printf %s "$out"
 }