[Mapbender-commits] r4344 - branches/2.6/lib

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jul 13 04:32:43 EDT 2009


Author: verenadiewald
Date: 2009-07-13 04:32:43 -0400 (Mon, 13 Jul 2009)
New Revision: 4344

Modified:
   branches/2.6/lib/ajax.php
Log:
check for get_magic_quotes_gpc

Modified: branches/2.6/lib/ajax.php
===================================================================
--- branches/2.6/lib/ajax.php	2009-07-13 08:15:01 UTC (rev 4343)
+++ branches/2.6/lib/ajax.php	2009-07-13 08:32:43 UTC (rev 4344)
@@ -56,7 +56,12 @@
 			
 			if ($requestArray["params"]) {
 				
-				$obj = $this->json->decode(stripslashes($requestArray["params"]));
+				if (get_magic_quotes_gpc()) {
+					$obj = $this->json->decode(stripslashes($requestArray["params"]));
+				}
+				else {
+					$obj = $this->json->decode($requestArray["params"]);
+				}
 				$this->paramObject = $obj;
 			}
 		}
@@ -199,4 +204,4 @@
 		return $this->json->encode($obj);
 	}
 }
-?>
\ No newline at end of file
+?>



More information about the Mapbender_commits mailing list