aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-06-03 15:48:26 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-06-03 15:48:26 +0100
commitc10a787f1f529cadae06fd9c8dff58ca7224d223 (patch)
tree90644a2865fe05769fe0a2b8aea6cc73597f4433 /perllib/FixMyStreet
parent34e78aa47e8cad5ba237705dd8a2fa1d1403ff20 (diff)
Fix RSS lat/lon redirect from alert list page; break setenv.pl's ARGV feature.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/App/Controller/Alert.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm
index 98e1236e1..bea5345e3 100644
--- a/perllib/FixMyStreet/App/Controller/Alert.pm
+++ b/perllib/FixMyStreet/App/Controller/Alert.pm
@@ -96,8 +96,7 @@ sub rss : Private {
$c->res->redirect($url);
}
elsif ( $feed =~ /^local:([\d\.-]+):([\d\.-]+)$/ ) {
- ( my $id = $1 ) =~ tr{:_}{/+};
- $url = $c->cobrand->base_url() . '/rss/l/' . $id;
+ $url = $c->cobrand->base_url() . '/rss/l/' . $1 . ',' . $2;
$c->res->redirect($url);
}
else {