forked from hans/Nominatim
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
282bd4a67e | ||
|
|
51f6db2e9c | ||
|
|
e4ecbef61e | ||
|
|
23dd49a5a2 | ||
|
|
0c85f88be8 | ||
|
|
7829a05002 |
@@ -20,7 +20,7 @@ project(nominatim)
|
|||||||
|
|
||||||
set(NOMINATIM_VERSION_MAJOR 3)
|
set(NOMINATIM_VERSION_MAJOR 3)
|
||||||
set(NOMINATIM_VERSION_MINOR 4)
|
set(NOMINATIM_VERSION_MINOR 4)
|
||||||
set(NOMINATIM_VERSION_PATCH 0)
|
set(NOMINATIM_VERSION_PATCH 2)
|
||||||
|
|
||||||
set(NOMINATIM_VERSION "${NOMINATIM_VERSION_MAJOR}.${NOMINATIM_VERSION_MINOR}.${NOMINATIM_VERSION_PATCH}")
|
set(NOMINATIM_VERSION "${NOMINATIM_VERSION_MAJOR}.${NOMINATIM_VERSION_MINOR}.${NOMINATIM_VERSION_PATCH}")
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
|
3.4.2
|
||||||
|
* security fix: fix possible SQL injection via details API
|
||||||
|
|
||||||
|
3.4.1
|
||||||
|
* update osm2pgsql
|
||||||
|
* move deletion to copy thread (fixes deadlock in updates)
|
||||||
|
* fix filtering where valid address objects got dropped
|
||||||
|
* fix typo in import styles
|
||||||
|
|
||||||
3.4.0
|
3.4.0
|
||||||
|
|
||||||
* increase required version for PostgreSQL(9.3), PostGIS(2.2) and PHP(7.0)
|
* increase required version for PostgreSQL(9.3), PostGIS(2.2) and PHP(7.0)
|
||||||
|
|||||||
Submodule osm2pgsql updated: 8d9087f111...5f3f736348
@@ -73,7 +73,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"keys" : ["country_code", "ISO3166-1", "is_in:country_code", "is_in_country",
|
"keys" : ["country_code", "ISO3166-1", "is_in:country_code", "is_in:country",
|
||||||
"addr:country", "addr:country", "addr:country_code"],
|
"addr:country", "addr:country", "addr:country_code"],
|
||||||
"values" : {
|
"values" : {
|
||||||
"" : "country"
|
"" : "country"
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"keys" : ["country_code", "ISO3166-1", "is_in:country_code", "is_in_country",
|
"keys" : ["country_code", "ISO3166-1", "is_in:country_code", "is_in:country",
|
||||||
"addr:country", "addr:country", "addr:country_code"],
|
"addr:country", "addr:country", "addr:country_code"],
|
||||||
"values" : {
|
"values" : {
|
||||||
"" : "country"
|
"" : "country"
|
||||||
|
|||||||
@@ -186,7 +186,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"keys" : ["country_code", "ISO3166-1", "is_in:country_code", "is_in_country",
|
"keys" : ["country_code", "ISO3166-1", "is_in:country_code", "is_in:country",
|
||||||
"addr:country", "addr:country", "addr:country_code"],
|
"addr:country", "addr:country", "addr:country_code"],
|
||||||
"values" : {
|
"values" : {
|
||||||
"" : "country"
|
"" : "country"
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"keys" : ["country_code", "ISO3166-1", "is_in:country_code", "is_in_country",
|
"keys" : ["country_code", "ISO3166-1", "is_in:country_code", "is_in:country",
|
||||||
"addr:country", "addr:country", "addr:country_code"],
|
"addr:country", "addr:country", "addr:country_code"],
|
||||||
"values" : {
|
"values" : {
|
||||||
"" : "country"
|
"" : "country"
|
||||||
|
|||||||
@@ -32,12 +32,14 @@ $sLanguagePrefArraySQL = $oDB->getArraySQL($oDB->getDBQuotedList($aLangPrefOrder
|
|||||||
|
|
||||||
if ($sOsmType && $iOsmId > 0) {
|
if ($sOsmType && $iOsmId > 0) {
|
||||||
$sSQL = 'SELECT place_id FROM placex WHERE osm_type = :type AND osm_id = :id';
|
$sSQL = 'SELECT place_id FROM placex WHERE osm_type = :type AND osm_id = :id';
|
||||||
|
$aSQLParams = array(':type' => $sOsmType, ':id' => $iOsmId);
|
||||||
// osm_type and osm_id are not unique enough
|
// osm_type and osm_id are not unique enough
|
||||||
if ($sClass) {
|
if ($sClass) {
|
||||||
$sSQL .= " AND class='".$sClass."'";
|
$sSQL .= ' AND class= :class';
|
||||||
|
$aSQLParams[':class'] = $sClass;
|
||||||
}
|
}
|
||||||
$sSQL .= ' ORDER BY class ASC';
|
$sSQL .= ' ORDER BY class ASC';
|
||||||
$sPlaceId = $oDB->getOne($sSQL, array(':type' => $sOsmType, ':id' => $iOsmId));
|
$sPlaceId = $oDB->getOne($sSQL, $aSQLParams);
|
||||||
|
|
||||||
// Be nice about our error messages for broken geometry
|
// Be nice about our error messages for broken geometry
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user