mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
sanitize special search term before normalizing
This commit is contained in:
@@ -1061,7 +1061,7 @@ class Geocode
|
||||
continue;
|
||||
}
|
||||
|
||||
$sToken = chksql($this->oDB->getOne("SELECT make_standard_name('".$aSpecialTerm[1]."') AS string"));
|
||||
$sToken = chksql($this->oDB->getOne("SELECT make_standard_name('".pg_escape_string($aSpecialTerm[1])."') AS string"));
|
||||
$sSQL = 'SELECT * ';
|
||||
$sSQL .= 'FROM ( ';
|
||||
$sSQL .= ' SELECT word_id, word_token, word, class, type, country_code, operator';
|
||||
|
||||
Reference in New Issue
Block a user