From e076fbf012cdf763a0e6720e58f41654be381252 Mon Sep 17 00:00:00 2001 From: Xvezda Date: Sun, 5 Apr 2015 17:32:58 +0900 Subject: [PATCH] nl2br content comment --- modules/comment/comment.controller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php index ae844b9d5..bc91ef3cd 100644 --- a/modules/comment/comment.controller.php +++ b/modules/comment/comment.controller.php @@ -335,6 +335,7 @@ class commentController extends comment { $obj->content = htmlspecialchars($obj->content, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); } + $obj->content = nl2br($obj->content); } if(!$obj->regdate) @@ -748,6 +749,7 @@ class commentController extends comment { $obj->content = htmlspecialchars($obj->content, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); } + $obj->content = nl2br($obj->content); } // remove iframe and script if not a top administrator on the session