From 76adbde9ced9e44676c30809680a55471788673b Mon Sep 17 00:00:00 2001 From: conory Date: Wed, 9 Mar 2016 17:14:05 +0900 Subject: [PATCH] =?UTF-8?q?content=20=EC=9C=84=EC=A0=AF=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EC=A0=9C=EB=AA=A9=EC=97=90=20=EC=9E=88=EB=8A=94=20=EB=94=B0?= =?UTF-8?q?=EC=9B=80=ED=91=9C=EA=B0=80=20"=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EA=B7=B8=EB=8C=80=EB=A1=9C=20=EC=B6=9C=EB=A0=A5=EB=90=98?= =?UTF-8?q?=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- widgets/content/content.class.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/widgets/content/content.class.php b/widgets/content/content.class.php index c2777e6e3..625aebfb3 100644 --- a/widgets/content/content.class.php +++ b/widgets/content/content.class.php @@ -287,7 +287,7 @@ class content extends WidgetHandler $content_item = new contentItem( $args->module_srls_info[$module_srl]->browser_title ); $content_item->adds($oDocument->getObjectVars()); $content_item->add('original_content', $oDocument->get('content')); - $content_item->setTitle(htmlspecialchars($oDocument->getTitleText())); + $content_item->setTitle($oDocument->getTitleText()); $content_item->setCategory( $category_lists[$module_srl][$category_srl]->title ); $content_item->setDomain( $args->module_srls_info[$module_srl]->domain ); $content_item->setContent($oDocument->getSummary($args->content_cut_size)); @@ -626,8 +626,7 @@ class content extends WidgetHandler if(($item->content && stripos($value->content->attrs->type, "html") === FALSE) || (!$item->content && stripos($value->summary->attrs->type, "html") === FALSE)) { - $item->description = htmlspecialchars($item->description, ENT_COMPAT | ENT_HTML401, 'UTF-8', false); - + $item->description = escape($item->description, false); } $content_item->setContent($this->_getSummary($item->description, $args->content_cut_size)); @@ -824,7 +823,7 @@ class contentItem extends Object } function setTitle($title) { - $this->add('title', strip_tags($title)); + $this->add('title', escape(strip_tags($title), false)); } function setThumbnail($thumbnail) { @@ -879,7 +878,7 @@ class contentItem extends Object } function getTitle($cut_size = 0, $tail='...') { - $title = strip_tags($this->get('title')); + $title = $this->get('title'); if($cut_size) $title = cut_str($title, $cut_size, $tail); @@ -887,7 +886,7 @@ class contentItem extends Object if($this->get('title_bold') == 'Y') $attrs[] = 'font-weight:bold'; if($this->get('title_color') && $this->get('title_color') != 'N') $attrs[] = 'color:#'.$this->get('title_color'); - if(count($attrs)) $title = sprintf("%s", implode(';', $attrs), htmlspecialchars($title)); + if(count($attrs)) $title = sprintf("%s", implode(';', $attrs), $title); return $title; }