[Mapbender-commits] r4686 - trunk/mapbender/core

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Sep 25 06:26:53 EDT 2009


Author: christoph
Date: 2009-09-25 06:26:52 -0400 (Fri, 25 Sep 2009)
New Revision: 4686

Modified:
   trunk/mapbender/core/globalSettings.php
   trunk/mapbender/core/system.php
Log:


Modified: trunk/mapbender/core/globalSettings.php
===================================================================
--- trunk/mapbender/core/globalSettings.php	2009-09-25 10:26:26 UTC (rev 4685)
+++ trunk/mapbender/core/globalSettings.php	2009-09-25 10:26:52 UTC (rev 4686)
@@ -38,9 +38,12 @@
 //
 mb_internal_encoding("UTF-8");
 
-/*
+//
+// if magic quotes is on, automatically strip slashes
+// (non-recursive due to possible security hazard)
+//
 if (get_magic_quotes_gpc()) {
-	$in = array(&$_GET, &$_POST, &$_COOKIE);
+	$in = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
 	
 	while (list($k, $v) = each($in)) {
 		foreach ($v as $key => $val) {
@@ -51,9 +54,11 @@
 			$in[]= &$in[$k][$key];
 		}
 	}
+
 	unset($in);
 }
-*/
+
+
 //
 // constants
 //

Modified: trunk/mapbender/core/system.php
===================================================================
--- trunk/mapbender/core/system.php	2009-09-25 10:26:26 UTC (rev 4685)
+++ trunk/mapbender/core/system.php	2009-09-25 10:26:52 UTC (rev 4686)
@@ -41,5 +41,5 @@
 	"scaleBar,scaleSelect,setBBOX,setPOI2Scale,reload,overview,addWMS," . 
 	"repaint,changeEPSG,User,AdminTabs,GroupEditor,GuiEditor,UserEditor,".
 	"scalebar,dialogManager,addWMSfromTree,mousewheelZoom,doubleclickZoom," . 
-	"overviewToggle,resizeMapsize,coordsLookup"
+	"overviewToggle,resizeMapsize,coordsLookup,selArea1"
 );



More information about the Mapbender_commits mailing list