aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2012-05-18 16:32:02 +0100
committerDave Whiteland <dave@mysociety.org>2012-05-18 16:32:02 +0100
commita85e1adae424465d20b4916b3d88958597194f29 (patch)
tree62f8616aa3062402a4e3f9b1fc8318250e4ee492
parent513c31baa905c8f39a1230306d2c6a06f4cacc76 (diff)
fix bug: failed to encode entities for nearest address in Barnet send
-rwxr-xr-xbin/send-reports4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/send-reports b/bin/send-reports
index eb881d169..ecf4b564e 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -499,7 +499,7 @@ sub post_barnet_message {
}
my $postcode = $h{postcode} || $nearest_postcode; # use given postcode if available
- # note: endpoint can be of form 'https://username:password@:url'
+ # note: endpoint can be of form 'https://username:password@url'
my $council_config = FixMyStreet::App->model("DB::Open311conf")->search( { area_id => COUNCIL_ID_BARNET} )->first;
if ($council_config and $council_config->endpoint) {
$interface->set_proxy($council_config->endpoint);
@@ -533,7 +533,7 @@ sub post_barnet_message {
COUNTY => "", # char30
CITY => "", # char30
POSTALCODE => $postcode, # char10
- STREET => $nearest_street, # char30
+ STREET => truncate_string_with_entities(ent(encode_utf8($nearest_street)), 30), # char30
STREETNUMBER => "", # char5
GEOCODE => $geo_code, # char32
},