check if query is valid unicode string

This commit is contained in:
Sarah Hoffmann
2016-10-12 22:25:04 +02:00
parent 6757e1b865
commit 7b1f35426d

View File

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