mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-10 03:54:06 +00:00
return a marginally better error message when query string is not in UTF-8,
force UTF-8 in search formular
This commit is contained in:
@@ -317,7 +317,7 @@ form{
|
|||||||
<div id="seachheaderfade1"></div><div id="seachheaderfade2"></div><div id="seachheaderfade3"></div><div id="seachheaderfade4"></div>
|
<div id="seachheaderfade1"></div><div id="seachheaderfade2"></div><div id="seachheaderfade3"></div><div id="seachheaderfade4"></div>
|
||||||
|
|
||||||
<div id="seachheader">
|
<div id="seachheader">
|
||||||
<form action="<?php echo CONST_Website_BaseURL; ?>search.php" method="get">
|
<form accept-charset="UTF-8" action="<?php echo CONST_Website_BaseURL; ?>search.php" method="get">
|
||||||
<table border="0" width="100%">
|
<table border="0" width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="center" style="width:30px;"><img src="images/logo.gif"></td>
|
<td valign="center" style="width:30px;"><img src="images/logo.gif"></td>
|
||||||
|
|||||||
@@ -271,7 +271,8 @@
|
|||||||
$aPhrase = $oDB->getRow("select make_standard_name('".pg_escape_string($sPhrase)."') as string");
|
$aPhrase = $oDB->getRow("select make_standard_name('".pg_escape_string($sPhrase)."') as string");
|
||||||
if (PEAR::isError($aPhrase))
|
if (PEAR::isError($aPhrase))
|
||||||
{
|
{
|
||||||
var_dump($aPhrase);
|
echo "Illegal query string (not an UTF-8 string): ".$sPhrase;
|
||||||
|
if (CONST_Debug) var_dump($aPhrase);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
if (trim($aPhrase['string']))
|
if (trim($aPhrase['string']))
|
||||||
|
|||||||
Reference in New Issue
Block a user