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:
Sarah Hoffmann
2012-02-12 12:01:24 +00:00
parent b07185c934
commit 6f9d3a9d80
2 changed files with 3 additions and 2 deletions

View File

@@ -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']))