X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fsecurity_functions.php;h=79599e4558dd6ace5280466af69a3b894f3ac18d;hp=73875e3bcb3d9258d69c80934a0cc5435116aac1;hb=b5912168d72ae511eb623c3d92540c82d31b93c5;hpb=011e5e7b4a6eff28aea4f30bc87fbf3ac5161612 diff --git a/inc/libs/security_functions.php b/inc/libs/security_functions.php index 73875e3bcb..79599e4558 100644 --- a/inc/libs/security_functions.php +++ b/inc/libs/security_functions.php @@ -82,10 +82,10 @@ if (!isset($_POST)) global $_POST; $_POST = $GLOBALS['_POST']; } -if (!isset($_COOKIE)) +if (!isset($_SESSION)) { - global $_COOKIE; - $_COOKIE = $GLOBALS['_COOKIE']; + global $_SESSION; + $_SESSION = $GLOBALS['_COOKIE']; } // Include IP-Filter here @@ -172,12 +172,12 @@ if (basename($_SERVER['PHP_SELF']) != "install.php") } // ... and finally cookies - foreach ($_COOKIE as $seckey=>$secvalue) + foreach ($_SESSION as $seckey=>$secvalue) { if (is_array($secvalue)) { // Throw arrays away... - unset($_COOKIE[$seckey]); + unset($_SESSION[$seckey]); } else { @@ -185,11 +185,11 @@ if (basename($_SERVER['PHP_SELF']) != "install.php") foreach ($SEC_CHARS['from'] as $key=>$char) { // Pass all through - $_COOKIE[$seckey] = str_replace($char , $SEC_CHARS['to'][$key], $_COOKIE[$seckey]); + $_SESSION[$seckey] = str_replace($char , $SEC_CHARS['to'][$key], $_SESSION[$seckey]); } // Strip all other out - $_COOKIE[$seckey] = strip_tags($_COOKIE[$seckey]); + $_SESSION[$seckey] = strip_tags($_SESSION[$seckey]); } } }