X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/7239687e5b7fab3c48a567cfee811fc8e9d1f2e8..6f9d3a9d8004e3e9d40d07e9fd67fd9eaf6a7d4f:/website/search.php diff --git a/website/search.php b/website/search.php index 7169c829..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'])) @@ -354,7 +355,7 @@ } } if ($bSuggestion) $sSuggestion = join(', ',$aSuggestion); -/* + // Try and calculate GB postcodes we might be missing foreach($aTokens as $sToken) { @@ -372,7 +373,6 @@ } } } -*/ foreach($aTokens as $sToken) {