A wrong var name was affected during authentification

This commit is contained in:
Loïc Chapeaux
2001-06-02 12:41:55 +00:00
parent 080b793c00
commit c1e0a9af1e
2 changed files with 11 additions and 6 deletions

View File

@@ -141,10 +141,10 @@ if($server == 0) {
$PHP_AUTH_USER = $REMOTE_USER;
}
else if (!empty($HTTP_ENV_VARS) && isset($HTTP_ENV_VARS['REMOTE_USER'])) {
$REMOTE_USER = $HTTP_ENV_VARS['REMOTE_USER'];
$PHP_AUTH_USER = $HTTP_ENV_VARS['REMOTE_USER'];
}
else if (@getenv('REMOTE_USER')) {
$REMOTE_USER = getenv('REMOTE_USER');
$PHP_AUTH_USER = getenv('REMOTE_USER');
}
}
// Grab the $PHP_AUTH_PW variable whatever are the values of the