mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 13:44:36 +03:00
Merge pull request #548 from lonvia/query-ckeck-utf8
check if query is valid unicode string
This commit is contained in:
commit
cfb0f3f94c
@ -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'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user