diff options
Diffstat (limited to 'etc/inc/auth.inc')
-rw-r--r-- | etc/inc/auth.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index e86e25f..a13b815 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -52,6 +52,10 @@ function passwd_backed_basic_auth() { for($attempt = 0; $attempt <= 3; basic_auth_prompt()){ $attempt++; /* Check for AUTH_USER */ + if ($HTTP_SERVER_VARS['PHP_AUTH_USER'] <> "") { + $HTTP_SERVER_VARS['AUTH_USER'] = $HTTP_SERVER_VARS['PHP_AUTH_USER']; + $HTTP_SERVER_VARS['AUTH_PW'] = $HTTP_SERVER_VARS['PHP_AUTH_PW']; + } if (!isset($HTTP_SERVER_VARS['AUTH_USER'])) continue; @@ -91,6 +95,10 @@ function htpasswd_backed_basic_auth() { for($attempt = 0; $attempt <= 3; basic_auth_prompt()){ $attempt++; /* Check for AUTH_USER */ + if ($HTTP_SERVER_VARS['PHP_AUTH_USER'] <> "") { + $HTTP_SERVER_VARS['AUTH_USER'] = $HTTP_SERVER_VARS['PHP_AUTH_USER']; + $HTTP_SERVER_VARS['AUTH_PW'] = $HTTP_SERVER_VARS['PHP_AUTH_PW']; + } if (!isset($HTTP_SERVER_VARS['AUTH_USER'])) continue; @@ -118,4 +126,4 @@ function htpasswd_backed_basic_auth() { return false; } -?>
\ No newline at end of file +?> |