X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d93209ee4831d2b32ea743fc2ec0a5feba238dcb..b27926fd4d96e0bcb0471543e4f29c14752f43e2:/lib/Geocode.php diff --git a/lib/Geocode.php b/lib/Geocode.php index 7ea39e49..03df6752 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -908,6 +908,9 @@ class Geocode } $sQuery = $this->sQuery; + if (!preg_match('//u', $sQuery)) { + userError("Query string is not UTF-8 encoded."); + } // Conflicts between US state abreviations and various words for 'the' in different languages if (isset($this->aLangPrefOrder['name:en'])) {