aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/Cobrands/Barnet/Util.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-22 15:26:51 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-22 15:26:51 +0000
commite3c8c5d194a7a7dce70152f89c65616c8981c1a3 (patch)
tree281183e4345f8d9a400c4b651140f4055635a375 /perllib/Cobrands/Barnet/Util.pm
parent3c97d45cb1a3803e74c43ef3eca3beb4a5d3ed23 (diff)
Couple of URI escaping fixes, plus cope with different versions of LWP returning content/decoded_content.
Diffstat (limited to 'perllib/Cobrands/Barnet/Util.pm')
-rw-r--r--perllib/Cobrands/Barnet/Util.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/Cobrands/Barnet/Util.pm b/perllib/Cobrands/Barnet/Util.pm
index eb8b91649..8ce296aaf 100644
--- a/perllib/Cobrands/Barnet/Util.pm
+++ b/perllib/Cobrands/Barnet/Util.pm
@@ -79,7 +79,7 @@ sub council_check {
}
my $url = 'http://www.fixmystreet.com/';
$url .= 'alert' if $context eq 'alert';
- $url .= '?pc=' . URI::Escape::uri_escape($q->param('pc')) if $q->param('pc');
+ $url .= '?pc=' . URI::Escape::uri_escape_utf8($q->param('pc')) if $q->param('pc');
my $error_msg = "That location is not covered by Barnet.
Please visit <a href=\"$url\">the main FixMyStreet site</a>.";
return (0, $error_msg);