From c8f4149f2dc5a1f593a6ba422181c3d433cc6ef7 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 22 Dec 2015 17:03:07 -0800 Subject: improve handling of internal errors from US Census geocoding, #39549 --- httemplate/elements/standardize_locations.js | 7 ++++++- httemplate/search/log.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'httemplate') diff --git a/httemplate/elements/standardize_locations.js b/httemplate/elements/standardize_locations.js index b824fb249..0c4fb029a 100644 --- a/httemplate/elements/standardize_locations.js +++ b/httemplate/elements/standardize_locations.js @@ -114,7 +114,12 @@ function confirm_standardize(arg) { // then all entered address fields are correct // but we still need to set the lat/long fields and addr_clean - status_message('Verified'); + + if ( returned['addr_clean'] ) { + status_message('Verified'); + } else { + status_message('Unverified'); + } replace_address(); } else { diff --git a/httemplate/search/log.html b/httemplate/search/log.html index a707928d7..b607f505d 100644 --- a/httemplate/search/log.html +++ b/httemplate/search/log.html @@ -138,7 +138,7 @@ my $tt_sub = sub { return '' if @context == 1 and length($log->message) <= 60; my $html = '
'.(shift @context).'
'; my $pre = '↳'; - foreach (@context, $log->message) { + foreach (map encode_entities($_), @context, $log->message) { $html .= "
$pre$_
"; $pre = '   '.$pre; } -- cgit v1.2.1