From 65806db34757daea425261fc141f37654a0aecc9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 26 May 2020 19:56:36 -0600 Subject: [PATCH] Get rid of an old reference to get_magic_quotes_gpc it was checking to see if it was enabled. --- resources/php.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/resources/php.php b/resources/php.php index 5f50843c5e..54c45b6ba7 100644 --- a/resources/php.php +++ b/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); - } - ?>