forked from hans/Nominatim
split query as utf8 string to avoid splitting on non-ascii characters
This commit is contained in:
@@ -1326,7 +1326,7 @@
|
|||||||
//var_Dump($aSearchResults);
|
//var_Dump($aSearchResults);
|
||||||
//exit;
|
//exit;
|
||||||
$aClassType = getClassTypesWithImportance();
|
$aClassType = getClassTypesWithImportance();
|
||||||
$aRecheckWords = preg_split('/\b/',$sQuery);
|
$aRecheckWords = preg_split('/\b/u',$sQuery);
|
||||||
foreach($aRecheckWords as $i => $sWord)
|
foreach($aRecheckWords as $i => $sWord)
|
||||||
{
|
{
|
||||||
if (!$sWord) unset($aRecheckWords[$i]);
|
if (!$sWord) unset($aRecheckWords[$i]);
|
||||||
|
|||||||
Reference in New Issue
Block a user