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

This commit is contained in:
FusionPBX
2020-05-26 19:56:36 -06:00
committed by GitHub
parent b2295da641
commit 65806db347

View File

@@ -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);
}
?>