]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/search.php
return a marginally better error message when query string is not in UTF-8,
[nominatim.git] / website / search.php
index 37ddd23c4118c9885cfc54397745f4c7a270bc9a..f4b9b9248236de26b0ddc8e234d3a03d9862892a 100755 (executable)
                                $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']))