nl2br content comment

This commit is contained in:
Xvezda 2015-04-05 17:32:58 +09:00
parent da9d9a518e
commit e076fbf012

View file

@ -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