mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-12-07 14:00:59 +01: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 = "";
|
$try_login = "";
|
||||||
|
|
||||||
foreach (["REMOTE_USER", "HTTP_REMOTE_USER", "REDIRECT_REMOTE_USER", "PHP_AUTH_USER"] as $hdr) {
|
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];
|
$try_login = $_SERVER[$hdr];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user