summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-01-07 11:18:02 +0300
committerAndrew Dolgov <[email protected]>2021-01-07 11:18:02 +0300
commit0868ff9d6495151a7cc25db541915943aefcd740 (patch)
treea7e508dd3f1f468ded2828f0166feb324ff18ba5 /plugins
parentdc40f695119996c0ce7f479eb0903f0994408800 (diff)
auth_remote: use empty() instead of isset() while checking headers
Diffstat (limited to 'plugins')
-rw-r--r--plugins/auth_remote/init.php2
1 files changed, 1 insertions, 1 deletions
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;
}