mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 03:39:56 +09:00
nl2br content comment
This commit is contained in:
parent
da9d9a518e
commit
e076fbf012
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue