Browse Source

Removing weird condition that adds addslashes in POST and GET when server is in a test mode see #4005

Julio Montoya 13 years ago
parent
commit
5c481cb8a1
1 changed files with 0 additions and 19 deletions
  1. 0 19
      main/inc/global.inc.php

+ 0 - 19
main/inc/global.inc.php

@@ -317,25 +317,6 @@ if (api_get_setting('server_type') == 'test') {
     } else {
         error_reporting(E_ALL & ~E_NOTICE);
     }
-    //error_reporting(E_ALL);
-
-    //Addslashes to all $_GET variables
-    foreach ($_GET as $key => $val) {
-        if (!ini_get('magic_quotes_gpc')) {
-            if (is_string($val)) {
-                $_GET[$key] = addslashes($val);
-            }
-        }
-    }
-
-    //Addslashes to all $_POST variables
-    foreach ($_POST as $key => $val) {
-        if (!ini_get('magic_quotes_gpc')) {
-            if (is_string($val)) {
-                $_POST[$key] = addslashes($val);
-            }
-        }
-    }
 } else {
     /*
     Server type is not test