Procházet zdrojové kódy

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

Julio Montoya před 13 roky
rodič
revize
5c481cb8a1
1 změnil soubory, kde provedl 0 přidání a 19 odebrání
  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