From 0eed023e7d20fff6c435d331f35b7f98b76f81e3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 9 Apr 2017 14:15:46 +0300 Subject: [PATCH] auth_remote: check for PHP_AUTH_USER too --- plugins/auth_remote/init.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/auth_remote/init.php b/plugins/auth_remote/init.php index 2ec2c87b..838178b2 100644 --- a/plugins/auth_remote/init.php +++ b/plugins/auth_remote/init.php @@ -40,6 +40,7 @@ class Auth_Remote extends Plugin implements IAuthModule { // php-cgi if (!$try_login) $try_login = db_escape_string($_SERVER["REDIRECT_REMOTE_USER"]); + if (!$try_login) $try_login = db_escape_string($_SERVER["PHP_AUTH_USER"]); if (!$try_login) $try_login = $this->get_login_by_ssl_certificate(); # if (!$try_login) $try_login = "test_qqq"; -- 2.39.5