Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update libraries/joomla/document/feed/renderer/rss.php #1716

Merged
merged 1 commit into from

3 participants

@jan7923

Fix for:
RSS feed gets corrupted when ampersand (&) or other escapable characters exist in Site Meta Description

Bug filed here:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=29731

@jan7923 jan7923 Update libraries/joomla/document/feed/renderer/rss.php
Fix for:
RSS feed gets corrupted when ampersand (&) or other escapable characters exist in Site Meta Description

Bug filed here:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=29731
b8bb934
@LouisLandry LouisLandry merged commit 7a1d981 into from
@elinw

@jan7923 would you put a note on your issue report in the CMS tracker that this is merged in the platform (and a pull request for the same fix to the CMS would be great).

@jan7923 jan7923 referenced this pull request in joomla/joomla-cms
Closed

Update libraries/joomla/document/feed/renderer/rss.php #588

@jan7923
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 25, 2012
  1. @jan7923

    Update libraries/joomla/document/feed/renderer/rss.php

    jan7923 authored
    Fix for:
    RSS feed gets corrupted when ampersand (&) or other escapable characters exist in Site Meta Description
    
    Bug filed here:
    http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=29731
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  libraries/joomla/document/feed/renderer/rss.php
View
2  libraries/joomla/document/feed/renderer/rss.php
@@ -72,7 +72,7 @@ public function render($name = '', $params = null, $content = null)
$feed = "<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n";
$feed .= " <channel>\n";
$feed .= " <title>" . $feed_title . "</title>\n";
- $feed .= " <description>" . $data->description . "</description>\n";
+ $feed .= " <description><![CDATA[" . $data->description . "]]></description>\n";
$feed .= " <link>" . str_replace(' ', '%20', $url . $data->link) . "</link>\n";
$feed .= " <lastBuildDate>" . htmlspecialchars($now->toRFC822(true), ENT_COMPAT, 'UTF-8') . "</lastBuildDate>\n";
$feed .= " <generator>" . $data->getGenerator() . "</generator>\n";
Something went wrong with that request. Please try again.