mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-25 18:48:15 +00:00
split query as utf8 string to avoid splitting on non-ascii characters
This commit is contained in:
@@ -1326,7 +1326,7 @@
|
||||
//var_Dump($aSearchResults);
|
||||
//exit;
|
||||
$aClassType = getClassTypesWithImportance();
|
||||
$aRecheckWords = preg_split('/\b/',$sQuery);
|
||||
$aRecheckWords = preg_split('/\b/u',$sQuery);
|
||||
foreach($aRecheckWords as $i => $sWord)
|
||||
{
|
||||
if (!$sWord) unset($aRecheckWords[$i]);
|
||||
|
||||
Reference in New Issue
Block a user