[zi-cvs] packages/com.zzoss.zic/inc init.php,1.1,1.2

[email protected] Wed, 21 Jan 2004 02:53:56 -0800
Newsgroups gmane.comp.php.zzoss.installer.cvs
Message-ID <[email protected]>
Update of /cvsroot/zzossinstaller/packages/com.zzoss.zic/inc
In directory sc8-pr-cvs1:/tmp/cvs-serv13849/com.zzoss.zic/inc

Modified Files:
	init.php 
Log Message:
handle magic quotes On

Index: init.php
===================================================================
RCS file: /cvsroot/zzossinstaller/packages/com.zzoss.zic/inc/init.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** init.php	22 Dec 2003 17:24:28 -0000	1.1
--- init.php	21 Jan 2004 10:53:54 -0000	1.2
***************
*** 24,28 ****
      */
      
!     	// define parameters
  	$zi_phpversion_required = '4.3.0';
      /*
--- 24,28 ----
      */
      
!     // define parameters
  	$zi_phpversion_required = '4.3.0';
      /*
***************
*** 54,60 ****
      //print_r($_REQUEST);
      
      define('ZI_DEBUG', false);
      define('ZZOSS_INSTALLER_REGISTRY_DEBUG', false);
!     define('ZZOSS_PACKAGE_DEBUG', true);
      define('ZZOSS_CONFIG_DEBUG', false);
      
--- 54,70 ----
      //print_r($_REQUEST);
      
+     // Handle magic quotes.
+     set_magic_quotes_runtime(0);
+     if(get_magic_quotes_gpc())
+     {
+        $_REQUEST = array_map("stripslashes", $_REQUEST);
+        $_GET = array_map("stripslashes", $_GET);
+        $_POST = array_map("stripslashes", $_POST);
+     }
+     
+     // Debugging
      define('ZI_DEBUG', false);
      define('ZZOSS_INSTALLER_REGISTRY_DEBUG', false);
!     define('ZZOSS_PACKAGE_DEBUG', false);
      define('ZZOSS_CONFIG_DEBUG', false);
      




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn