From: Matteo Nastasi (mop) Date: Tue, 3 Dec 2013 18:43:15 +0000 (+0100) Subject: refactored esclfhtml function to avoid ASCII string output and removing NL X-Git-Tag: v4.11.0~12 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=b07bbed348c8eae3ca8136ba77659426e698974d;p=brisk.git refactored esclfhtml function to avoid ASCII string output and removing NL --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index e88f1db..344b30e 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -395,10 +395,9 @@ function eschtml($s) function esclfhtml($s) { - return str_replace("\n", "
\n", htmlentities($s)); + return str_replace("\n", "
", htmlspecialchars($s)); } - function langtolng($lang) { GLOBAL $G_lang;