mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
sanitize special search term before normalizing
This commit is contained in:
@@ -1061,7 +1061,7 @@ class Geocode
|
|||||||
continue;
|
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 = 'SELECT * ';
|
||||||
$sSQL .= 'FROM ( ';
|
$sSQL .= 'FROM ( ';
|
||||||
$sSQL .= ' SELECT word_id, word_token, word, class, type, country_code, operator';
|
$sSQL .= ' SELECT word_id, word_token, word, class, type, country_code, operator';
|
||||||
|
|||||||
Reference in New Issue
Block a user