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 e88f1db..344b30e 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;