From fc67395fe36003b4d0a73b41a6e9bb09e62e94b0 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 24 Oct 2014 16:57:24 +0100 Subject: Category should be escaped in RSS feeds. In case it contains an ampersand or somesuch. --- perllib/FixMyStreet/App/Controller/Rss.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index ed47f6f87..cbeddce85 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -278,7 +278,7 @@ sub add_row : Private { description => ent(ent($desc)) # Yes, double-encoded, really. ); $item{pubDate} = $pubDate if $pubDate; - $item{category} = $row->{category} if $row->{category}; + $item{category} = ent($row->{category}) if $row->{category}; if ($c->cobrand->allow_photo_display($row) && $row->{photo}) { my $key = $alert_type->item_table eq 'comment' ? 'c/' : ''; -- cgit v1.2.3