From: Sarah Hoffmann Date: Sun, 11 Dec 2022 15:24:54 +0000 (+0100) Subject: Merge remote-tracking branch 'upstream/master' X-Git-Tag: deploy~84 X-Git-Url: https://git.openstreetmap.org/nominatim.git/commitdiff_plain/702eb862026f4e5c056d73657e6802023a83cc2a?hp=6463839b4b5c3577dcce72795513c1a75444adb4 Merge remote-tracking branch 'upstream/master' --- diff --git a/lib-php/Geocode.php b/lib-php/Geocode.php index cd8b6edd..20edd9a5 100644 --- a/lib-php/Geocode.php +++ b/lib-php/Geocode.php @@ -874,7 +874,7 @@ class Geocode $iCountWords = 0; $sAddress = $aResult['langaddress']; foreach ($aRecheckWords as $i => $sWord) { - if (stripos($sAddress, $sWord)!==false) { + if (grapheme_stripos($sAddress, $sWord)!==false) { $iCountWords++; if (preg_match('/(^|,)\s*'.preg_quote($sWord, '/').'\s*(,|$)/', $sAddress)) { $iCountWords += 0.1;