Skip to content

Commit

Permalink
Fix system notice on login page with BASIC_AUTH
Browse files Browse the repository at this point in the history
Undefined index: REMOTE_USER in authentication_api.php line 337

Fixes #22865
  • Loading branch information
dregad committed May 13, 2017
1 parent cbdf566 commit b0b56c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/authentication_api.php
Expand Up @@ -334,7 +334,9 @@ function auth_prepare_username( $p_username ) {

switch( config_get( 'login_method' ) ) {
case BASIC_AUTH:
$t_username = $_SERVER['REMOTE_USER'];
if( isset( $_SERVER['REMOTE_USER'] ) ) {
$t_username = $_SERVER['REMOTE_USER'];
}
break;
case HTTP_AUTH:
if( !auth_http_is_logout_pending() ) {
Expand Down

0 comments on commit b0b56c8

Please sign in to comment.