auth_remote: use empty() instead of isset() while checking headers

This commit is contained in:
Andrew Dolgov 2021-01-07 11:18:02 +03:00
parent dc40f69511
commit 0868ff9d64
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}