summaryrefslogtreecommitdiffstats
path: root/etc/inc/auth.inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-20 22:08:34 +0000
committerErmal <eri@pfsense.org>2013-12-20 22:08:34 +0000
commitaa205c3b69bf76b1565fd42dba83c7637212f793 (patch)
treef04ba2d5e093bd36f0e128690e72ae538b8104de /etc/inc/auth.inc
parentcc2630208cc31ac3a19c185036a4b589d125e99a (diff)
downloadpfsense-aa205c3b69bf76b1565fd42dba83c7637212f793.zip
pfsense-aa205c3b69bf76b1565fd42dba83c7637212f793.tar.gz
Rmoeve register_long_arrays from php.ini and from php code the use of HTTP_*_VARS as its deprecated and luckily low use in pfSense to win memory and compativility
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r--etc/inc/auth.inc4
1 files changed, 1 insertions, 3 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 521656b..c686ff4 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -1344,7 +1344,7 @@ function authenticate_user($username, $password, $authcfg = NULL, &$attributes =
}
function session_auth() {
- global $HTTP_SERVER_VARS, $config, $_SESSION, $page;
+ global $config, $_SESSION, $page;
// Handle HTTPS httponly and secure flags
if($config['system']['webgui']['protocol'] == "https") {
@@ -1372,7 +1372,6 @@ function session_auth() {
if(! isset($config['system']['webgui']['quietlogin'])) {
log_auth(sprintf(gettext("Successful login for user '%1\$s' from: %2\$s"), $_POST['usernamefld'], $_SERVER['REMOTE_ADDR']));
}
- $HTTP_SERVER_VARS['AUTH_USER'] = $_SESSION['Username'];
if (isset($_POST['postafterlogin']))
return true;
else {
@@ -1464,7 +1463,6 @@ function session_auth() {
if ($_GET['enable_ajax'])
unset($_SESSION['NO_AJAX']);
- $HTTP_SERVER_VARS['AUTH_USER'] = $_SESSION['Username'];
return true;
}
OpenPOWER on IntegriCloud