From: Sarah Hoffmann Date: Sun, 12 Feb 2012 12:01:24 +0000 (+0000) Subject: return a marginally better error message when query string is not in UTF-8, X-Git-Tag: v2.0.0~114 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/6f9d3a9d8004e3e9d40d07e9fd67fd9eaf6a7d4f return a marginally better error message when query string is not in UTF-8, force UTF-8 in search formular --- diff --git a/lib/template/search-html.php b/lib/template/search-html.php index a9d328a8..09b7021f 100644 --- a/lib/template/search-html.php +++ b/lib/template/search-html.php @@ -317,7 +317,7 @@ form{
-
+ diff --git a/website/search.php b/website/search.php index 37ddd23c..f4b9b924 100755 --- a/website/search.php +++ b/website/search.php @@ -271,7 +271,8 @@ $aPhrase = $oDB->getRow("select make_standard_name('".pg_escape_string($sPhrase)."') as string"); if (PEAR::isError($aPhrase)) { - var_dump($aPhrase); + echo "Illegal query string (not an UTF-8 string): ".$sPhrase; + if (CONST_Debug) var_dump($aPhrase); exit; } if (trim($aPhrase['string']))