mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-26 11:08:13 +00:00
Merge pull request #548 from lonvia/query-ckeck-utf8
check if query is valid unicode string
This commit is contained in:
@@ -908,6 +908,9 @@ class Geocode
|
|||||||
}
|
}
|
||||||
|
|
||||||
$sQuery = $this->sQuery;
|
$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
|
// Conflicts between US state abreviations and various words for 'the' in different languages
|
||||||
if (isset($this->aLangPrefOrder['name:en'])) {
|
if (isset($this->aLangPrefOrder['name:en'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user