aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-11 11:43:13 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-11 11:43:13 +0100
commit1c70dcf732f3b6ced75c734703ccce237cfbd3ce (patch)
tree9ad3928d9ba84d8d8f68e7bcbc803e0e52d7d526 /perllib
parent57677197480e18bf2c917ba9fc444797b0db8bff (diff)
parenta37eb834665ea7a88e9d900577f3189a9094dee7 (diff)
Merge branch 'migrate_to_catalyst' of ssh://evdb@git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 903a8b97e..71650c0e4 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -520,7 +520,12 @@ sub determine_location_from_pc : Private {
# $error doubles up to return multiple choices by being an array
if ( ref($error) eq 'ARRAY' ) {
- @$error = map { decode_utf8($_) } @$error;
+ @$error = map {
+ decode_utf8($_);
+ s/, United Kingdom//;
+ s/, UK//;
+ $_;
+ } @$error;
$c->stash->{possible_location_matches} = $error;
return;
}