Encode non-BMP UTF-8 characters as HTML entities

This commit is contained in:
Kijin Sung 2016-01-17 14:09:45 +09:00
parent 7d44db1dcb
commit d474c20a36
4 changed files with 31 additions and 2 deletions

View file

@ -357,6 +357,7 @@ class commentController extends comment
{
$obj->content = removeHackTag($obj->content);
}
$obj->content = utf8_mbencode($obj->content);
if(!$obj->notify_message)
{
@ -777,6 +778,7 @@ class commentController extends comment
{
$obj->content = removeHackTag($obj->content);
}
$obj->content = utf8_mbencode($obj->content);
// begin transaction
$oDB = DB::getInstance();