]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
refactored esclfhtml function to avoid ASCII string output and removing NL
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 3 Dec 2013 18:43:15 +0000 (19:43 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 3 Dec 2013 18:43:15 +0000 (19:43 +0100)
web/Obj/brisk.phh

index e88f1db7648f61ac30f5d2c6fb4afd19b1d77a8e..344b30e2dfc9b933c915b61c04ab5459d9ced8e2 100644 (file)
@@ -395,10 +395,9 @@ function eschtml($s)
 
 function esclfhtml($s)
 {
-    return str_replace("\n", "<br>\n", htmlentities($s));
+    return str_replace("\n", "<br>", htmlspecialchars($s));
 }
 
-
 function langtolng($lang)
 {
   GLOBAL $G_lang;