Skip to content

Commit

Permalink
RSS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Sep 19, 2016
1 parent b212d62 commit 9b6f796
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/com_fabrik/views/list/view.fabrikfeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,11 @@ public function display($tpl = null)
if ($title == '')
{
// Set a default title
$title = $row->$dbColName['colName'];
$title = $row->{$dbColName['colName']};
}

// Rob - was stripping tags - but aren't they valid in the content?
$rssContent = $row->$dbColName['colName'];
$rssContent = $row->{$dbColName['colName']};
$found = false;

foreach ($rssTags as $rssTag => $namespace)
Expand Down
3 changes: 2 additions & 1 deletion libraries/joomla/document/fabrikfeed/renderer/rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ public function render($name, $params = null, $content = null)
$feed.= " <item>\n";
$feed.= " <title><![CDATA[" . htmlspecialchars(strip_tags(html_entity_decode($data->items[$i]->title, ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8') . "]]></title>\n";
$feed.= " <link>" . $url . $data->items[$i]->link . "</link>\n";
$feed.= " <description><![CDATA[" . htmlspecialchars(html_entity_decode($this->_relToAbs($data->items[$i]->description), ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8') . "]]></description>\n";
//$feed.= " <description><![CDATA[" . htmlspecialchars(html_entity_decode($this->_relToAbs($data->items[$i]->description), ENT_COMPAT, 'UTF-8'), ENT_COMPAT, 'UTF-8') . "]]></description>\n";
$feed.= " <description><![CDATA[" . html_entity_decode($this->_relToAbs($data->items[$i]->description), ENT_COMPAT, 'UTF-8') . "]]></description>\n";

if ($data->items[$i]->author != "")
{
Expand Down

0 comments on commit 9b6f796

Please sign in to comment.