Update php.php

This commit is contained in:
FusionPBX 2019-09-25 15:19:47 -06:00 committed by GitHub
parent dc9252138a
commit 2d84d8b15c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 7 deletions

View File

@ -26,7 +26,6 @@
//session handling
//start the session
ini_set("session.cookie_httponly", True);
if (function_exists('session_start')) {
if (!isset($_SESSION)) {
session_start();
@ -51,13 +50,13 @@
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];
foreach ($v as $key => $val) {
if (!is_array($val)) {
$in[$k][$key] = stripslashes($val);
continue;
}
$in[] =& $in[$k][$key];
}
}
unset($in);
}