[Mapbender-commits] r7222 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Dec 11 10:18:31 EST 2010


Author: tbaschetti
Date: 2010-12-11 07:18:31 -0800 (Sat, 11 Dec 2010)
New Revision: 7222

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-11 15:18:31 UTC (rev 7221)
+++ trunk/mapbender/http/php/mod_editElements.php	2010-12-11 15:18:31 UTC (rev 7222)
@@ -17,14 +17,22 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
+$e_id="editElements";
 require_once(dirname(__FILE__)."/../php/mb_validatePermission.php");
-
 /*  
- * @security_patch irv open 
- */ 
+ * @security_patch irv done
+ */
 security_patch_log(__FILE__,__LINE__); 
-import_request_variables("PG"); 
-$e_id="editElements";
+//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");
+foreach($postvars as $value){
+    $$value=$_POST[$value];
+}
+
+
+
+
 require_once(dirname(__FILE__)."/../classes/class_administration.php");
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -525,11 +533,11 @@
 	   // set guiDesc and guiId if guiList1 has just been selected
 	   if (!$guiDesc) {
 		  $Desc = "guiDesc_" . $guiList1;
-		  $guiDesc = $$Desc;
+                  $guiDesc = $_POST[$Desc];
 	   }
 	   if (!$guiId) {
 		  $Id = "guiId_" . $guiList1;
-		  $guiId = $$Id;
+                  $guiId = $_POST[$Id];
 	   }
 
 	   echo "&nbsp;&nbsp;<br /><span style='font-size:75%'>(" . $guiDesc;



More information about the Mapbender_commits mailing list