From dc40f695119996c0ce7f479eb0903f0994408800 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 5 Jan 2021 18:55:05 +0300 Subject: [PATCH] fix auth_remote broken by previous commit --- plugins/auth_remote/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php index 343758b60..8e364f334 100644 --- a/plugins/auth_remote/init.php +++ b/plugins/auth_remote/init.php @@ -45,7 +45,7 @@ class Auth_Remote extends Plugin implements IAuthModule { foreach (["REMOTE_USER", "HTTP_REMOTE_USER", "REDIRECT_REMOTE_USER", "PHP_AUTH_USER"] as $hdr) { if (isset($_SERVER[$hdr])) { - $try_login = $_SERVER["hdr"]; + $try_login = $_SERVER[$hdr]; break; } }