Skip to content

Commit

Permalink
Fixed broken logout functionality got http auth
Browse files Browse the repository at this point in the history
  • Loading branch information
roccivic committed Nov 26, 2012
1 parent 5630e9b commit bc9e81a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/plugins/auth/AuthenticationHttp.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ public function auth()
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
Expand Down Expand Up @@ -159,7 +158,8 @@ public function authCheck()
}

// 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 = '';
Expand Down Expand Up @@ -245,4 +245,4 @@ public function authFails()
public function update (SplSubject $subject)
{
}
}
}

0 comments on commit bc9e81a

Please sign in to comment.