mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
check if query is valid unicode string
This commit is contained in:
@@ -772,6 +772,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'])) {
|
||||
|
||||
Reference in New Issue
Block a user