mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-17 05:50:59 +02:00
auth_remote: use empty() instead of isset() while checking headers
This commit is contained in:
parent
dc40f69511
commit
0868ff9d64
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user