aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Rss.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-10-24 16:57:24 +0100
committerMatthew Somerville <matthew@mysociety.org>2014-10-24 16:57:24 +0100
commitfc67395fe36003b4d0a73b41a6e9bb09e62e94b0 (patch)
treecbd7d1b5b71b951575a971bc829acbb77d72b031 /perllib/FixMyStreet/App/Controller/Rss.pm
parentf3b4c1d62f7c047a570fcfdfb5773cef052b7d19 (diff)
Category should be escaped in RSS feeds.
In case it contains an ampersand or somesuch.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-xperllib/FixMyStreet/App/Controller/Rss.pm2
1 files changed, 1 insertions, 1 deletions
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/' : '';