diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php index 8e364f334..7635080a0 100644 --- a/plugins/auth_remote/init.php +++ b/plugins/auth_remote/init.php @@ -44,7 +44,7 @@ class Auth_Remote extends Plugin implements IAuthModule { $try_login = ""; foreach (["REMOTE_USER", "HTTP_REMOTE_USER", "REDIRECT_REMOTE_USER", "PHP_AUTH_USER"] as $hdr) { - if (isset($_SERVER[$hdr])) { + if (!empty($_SERVER[$hdr])) { $try_login = $_SERVER[$hdr]; break; }