From d06483fb16ccb5e7027418ffeb48452c02a7d934 Mon Sep 17 00:00:00 2001 From: qw5414 Date: Thu, 18 Feb 2016 16:36:08 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=B8=EC=84=9C=EC=A0=9C=EB=AA=A9=EC=97=90?= =?UTF-8?q?=20=EB=8C=80=ED=95=9C=20=EB=B3=B4=EC=95=88=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20=EB=B3=B4=EC=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/document/document.controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/document/document.controller.php b/modules/document/document.controller.php index 9800206b7..569cbc022 100644 --- a/modules/document/document.controller.php +++ b/modules/document/document.controller.php @@ -389,7 +389,7 @@ class documentController extends document $obj->homepage = $logged_info->homepage; } // If the tile is empty, extract string from the contents. - $obj->title = htmlspecialchars($obj->title); + $obj->title = htmlspecialchars($obj->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); settype($obj->title, "string"); if($obj->title == '') $obj->title = cut_str(trim(strip_tags(nl2br($obj->content))),20,'...'); // If no tile extracted from the contents, leave it untitled. @@ -610,7 +610,7 @@ class documentController extends document $obj->homepage = $source_obj->get('homepage'); } // If the tile is empty, extract string from the contents. - $obj->title = htmlspecialchars($obj->title); + $obj->title = htmlspecialchars($obj->title, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); settype($obj->title, "string"); if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...'); // If no tile extracted from the contents, leave it untitled.