ソースを参照

Get rid of an old reference to get_magic_quotes_gpc it was checking to see if it was enabled.

FusionPBX 5 年 前
コミット
ca8239b8e9
1 ファイル変更0 行追加15 行削除
  1. 0 15
      resources/php.php

+ 0 - 15
resources/php.php

@@ -46,19 +46,4 @@
 	//get the document_root parent directory
 		$document_root_parent = join(array_slice(explode("\\",realpath($_SERVER["DOCUMENT_ROOT"])),0,-1), '/');
 
-	//if magic quotes is enabled remove the slashes
-		if (get_magic_quotes_gpc()) {
-			$in = array(&$_GET, &$_POST, &$_REQUEST, &$_COOKIE);
-			while (list($k,$v) = each($in)) {
-				foreach ($v as $key => $val) {
-					if (!is_array($val)) {
-							$in[$k][$key] = stripslashes($val);
-							continue;
-					}
-					$in[] =& $in[$k][$key];
-				}
-			}
-			unset($in);
-		}
-
 ?>