[Mapbender-commits] r7243 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sun Dec 12 03:12:38 EST 2010
Author: tbaschetti
Date: 2010-12-12 00:12:38 -0800 (Sun, 12 Dec 2010)
New Revision: 7243
Modified:
trunk/mapbender/http/php/mod_editElements.php
Log:
bugfix
Modified: trunk/mapbender/http/php/mod_editElements.php
===================================================================
--- trunk/mapbender/http/php/mod_editElements.php 2010-12-12 08:04:34 UTC (rev 7242)
+++ trunk/mapbender/http/php/mod_editElements.php 2010-12-12 08:12:38 UTC (rev 7243)
@@ -22,14 +22,24 @@
/*
* @security_patch irv done
*/
-//security_patch_log(__FILE__,__LINE__);
+security_patch_log(__FILE__,__LINE__);
//import_request_variables("PG");
-
-$postvars=array("guiList1","guiId","guiDesc","guiList2","myElement","e_id_","orig_e_id_","e_pos","e_public","e_comment","e_title","e_element","e_src","e_attributes","e_left","e_top","e_width","e_height","e_z_index","e_more_styles","e_content","e_closetag","e_js_file","e_mb_mod","e_target","e_requires","e_url","originGuiOfSelectedElement","myDelete","myDuplicate","mySave","myShow","all");
+$postvars=array("guiList1","guiDesc","guiList2","myElement","e_id_","orig_e_id_","e_pos","e_public","e_comment",
+ "e_title","e_element","e_src","e_attributes","e_left","e_top","e_width","e_height","e_z_index","e_more_styles",
+ "e_content","e_closetag","e_js_file","e_mb_mod","e_target","e_requires","e_url",
+ "originGuiOfSelectedElement","myDelete","myDuplicate","mySave","myShow","all");
foreach($postvars as $value){
- $$value=$_POST[$value];
+ $$value=$_POST[$value];
}
-
+if ($_SERVER['REQUEST_METHOD'] === 'GET'){
+ if (isset($_GET["guiList1"])){
+ $guiList1=$_GET["guiList1"];
+ }
+ if (isset($_GET["guiList2"])){
+ $guiList2=$_GET["guiList2"];
+ }
+}
+//import_request_variables("PG");
require_once(dirname(__FILE__)."/../classes/class_administration.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -534,6 +544,7 @@
}
if (!$guiId) {
$Id = "guiId_" . $guiList1;
+ //$$Id;
$guiId = $_POST[$Id];
}
More information about the Mapbender_commits
mailing list