소스 검색

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

Julio Montoya 13 년 전
부모
커밋
5c481cb8a1
1개의 변경된 파일0개의 추가작업 그리고 19개의 파일을 삭제
  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