From b07bbed348c8eae3ca8136ba77659426e698974d Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Tue, 3 Dec 2013 19:43:15 +0100 Subject: [PATCH] refactored esclfhtml function to avoid ASCII string output and removing NL --- web/Obj/brisk.phh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.17.1