From bc9e81aa146d3d0d710c3d2b93ee671b654d49d8 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Mon, 26 Nov 2012 22:55:40 +0000 Subject: [PATCH] Fixed broken logout functionality got http auth --- libraries/plugins/auth/AuthenticationHttp.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/plugins/auth/AuthenticationHttp.class.php b/libraries/plugins/auth/AuthenticationHttp.class.php index 4046f9528f..d5f7d20ffc 100644 --- a/libraries/plugins/auth/AuthenticationHttp.class.php +++ b/libraries/plugins/auth/AuthenticationHttp.class.php @@ -103,7 +103,6 @@ class AuthenticationHttp extends AuthenticationPlugin public function authCheck() { global $PHP_AUTH_USER, $PHP_AUTH_PW; - global $old_usr; // Grabs the $PHP_AUTH_USER variable whatever are the values of the // 'register_globals' and the 'variables_order' directives @@ -159,7 +158,8 @@ class AuthenticationHttp extends AuthenticationPlugin } // User logged out -> ensure the new username is not the same - if (!empty($old_usr) + $old_usr = $_REQUEST['old_usr']; + if (! empty($old_usr) && (isset($PHP_AUTH_USER) && $old_usr == $PHP_AUTH_USER) ) { $PHP_AUTH_USER = ''; @@ -245,4 +245,4 @@ class AuthenticationHttp extends AuthenticationPlugin public function update (SplSubject $subject) { } -} \ No newline at end of file +}