Skip to content

Commit 1616db0

Browse files
committed
Check lat and lng input
1 parent 7564ffb commit 1616db0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/functions_map.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ function osm_get_items($page)
140140
$LIMIT_SEARCH="";
141141
$INNER_JOIN="";
142142

143+
foreach (array('min_lat', 'min_lng', 'max_lat', 'max_lng') as $get_key)
144+
{
145+
check_input_parameter($get_key, $_GET, false, '/^\d+(\.\d+)?$/');
146+
}
147+
143148
/* Delete all previous album */
144149
$query="SELECT `id` FROM ".CATEGORIES_TABLE." WHERE `name` = 'Locations' AND `comment` LIKE '%OSM plugin%';";
145150
$ids = array_from_query($query, 'id');

0 commit comments

Comments
 (0)