Skip to content
This repository has been archived by the owner on Jan 6, 2020. It is now read-only.

Commit

Permalink
remove html decode in ContentLoader.php
Browse files Browse the repository at this point in the history
  • Loading branch information
SSilence committed Apr 27, 2013
1 parent 5d1f202 commit 3a3d583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/ContentLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function fetch($source) {

// sanitize content html
$content = htmLawed(
html_entity_decode($item->getContent()),
$item->getContent(),
array(
"safe" => 1,
"deny_attribute" => '* -alt -title -src -href',
Expand All @@ -116,7 +116,7 @@ public function fetch($source) {
"elements" => 'div,p,ul,li,a,img,dl,dt,h1,h2,h3,h4,h5,h6,ol,br,table,tr,td,blockquote,pre,ins,del,th,thead,tbody,b,i,strong,em,tt'
)
);
$title = htmLawed(html_entity_decode($item->getTitle()), array("deny_attribute" => "*", "elements" => "-*"));
$title = htmLawed($item->getTitle(), array("deny_attribute" => "*", "elements" => "-*"));
\F3::get('logger')->log('item content sanitized', \DEBUG);

$icon = $item->getIcon();
Expand Down

0 comments on commit 3a3d583

Please sign in to comment.