]> git.openstreetmap.org Git - nominatim.git/commitdiff
Merge remote-tracking branch 'upstream/master'
authorSarah Hoffmann <lonvia@denofr.de>
Sun, 11 Dec 2022 15:24:54 +0000 (16:24 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Sun, 11 Dec 2022 15:24:54 +0000 (16:24 +0100)
1  2 
lib-php/Geocode.php

diff --combined lib-php/Geocode.php
index cd8b6edd860249f2007de47b763d36bcfe698a65,0881d20a216f5adeb77f22cf75dbc15cab0b4cc0..20edd9a5fe35485155011dadd591a5ea19b55a9f
@@@ -695,7 -695,7 +695,7 @@@ class Geocod
                          }
                      }
  
 -                    if ($iQueryLoop > 20) {
 +                    if ($iQueryLoop > 30) {
                          break;
                      }
                  }
                      $aResults = $tempIDs;
                  }
  
 -                if (!empty($aResults) || $iGroupLoop > 4 || $iQueryLoop > 30) {
 +                if (!empty($aResults) || $iGroupLoop > 6 || $iQueryLoop > 40) {
                      break;
                  }
              }
                  $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;