Merge pull request #548 from lonvia/query-ckeck-utf8

check if query is valid unicode string
This commit is contained in:
Sarah Hoffmann 2016-11-02 19:21:29 +01:00 committed by GitHub
commit cfb0f3f94c

View File

@ -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'])) {