diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-09-12 18:22:03 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-09-12 18:22:03 +0100 |
commit | 4e41d25c998023839a7e4cc2ed96af2bd8254a18 (patch) | |
tree | 5b3aaca58258d3888a9adc0f923a9a16cd5e0d37 /perllib/FixMyStreet/App/Controller/Rss.pm | |
parent | 34caf792ef3efc9387543035034c402842657404 (diff) |
Hopefully fix issue with council reports pagination display, link in RSS feed, and nofollow map links.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-x | perllib/FixMyStreet/App/Controller/Rss.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index 767d38c21..23345df65 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -194,7 +194,7 @@ sub generate : Private { my $out = $c->stash->{rss}->as_string; my $uri = $c->uri_for( '/' . $c->req->path ); - $out =~ s{<link>(.*?)</link>}{"<link>" . $c->uri_for( $1 ) . "</link><uri>$uri</uri>"}e; + $out =~ s{(<link>.*?</link>)}{$1<uri>$uri</uri>}; $c->response->header('Content-Type' => 'application/xml; charset=utf-8'); $c->response->body( $out ); @@ -306,7 +306,7 @@ sub add_parameters : Private { $c->stash->{rss}->channel( title => ent($title), - link => $link . ($c->stash->{qs} || ''), + link => $c->uri_for($link) . ($c->stash->{qs} || ''), description => ent($desc), language => 'en-gb', ); |