2010-03-09 Miguel de Dios <miguel.dedios@artica.es>
* godmode/gis_maps/configure_gis_map.php: fix the request var when it is activate magic quotes. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2493 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
b216cf50c1
commit
dcf9036315
|
@ -1,3 +1,8 @@
|
||||||
|
2010-03-09 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* godmode/gis_maps/configure_gis_map.php: fix the request var when it is
|
||||||
|
activate magic quotes.
|
||||||
|
|
||||||
2010-03-09 Junichi Satoh <junichi@rworks.jp>
|
2010-03-09 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
* include/help/ja : Imported Japanese help files.
|
* include/help/ja : Imported Japanese help files.
|
||||||
|
|
|
@ -22,6 +22,8 @@ print_page_header (__('GIS Maps builder'), "images/server_web.png", false, "conf
|
||||||
|
|
||||||
require_once ('include/functions_gis.php');
|
require_once ('include/functions_gis.php');
|
||||||
|
|
||||||
|
$magicQuotesFlag = (boolean)ini_get('magic_quotes_gpc');
|
||||||
|
|
||||||
require_javascript_file('openlayers.pandora');
|
require_javascript_file('openlayers.pandora');
|
||||||
//Global vars for javascript and scripts.
|
//Global vars for javascript and scripts.
|
||||||
?>
|
?>
|
||||||
|
@ -131,7 +133,13 @@ switch ($action) {
|
||||||
|
|
||||||
$arrayLayers = array();
|
$arrayLayers = array();
|
||||||
foreach ($layer_list as $layerID) {
|
foreach ($layer_list as $layerID) {
|
||||||
$arrayLayers[] = JSON_decode($_POST['layer_values_' . $layerID], true);
|
if ($magicQuotesFlag) {
|
||||||
|
$layer = stripslashes($_POST['layer_values_' . $layerID]);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$layer = $_POST['layer_values_' . $layerID];
|
||||||
|
}
|
||||||
|
$arrayLayers[] = JSON_decode($layer, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$invalidFields = validateMapData($map_name, $map_zoom_level,
|
$invalidFields = validateMapData($map_name, $map_zoom_level,
|
||||||
|
|
Loading…
Reference in New Issue