]> git.wh0rd.org - tt-rss.git/commitdiff
auth_remote: check for PHP_AUTH_USER too
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 9 Apr 2017 11:15:46 +0000 (14:15 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 9 Apr 2017 11:15:46 +0000 (14:15 +0300)
plugins/auth_remote/init.php

index 2ec2c87b232ca9e0e33c7d00b27763efb95e5041..838178b26f5a6a259e1115b1ebb8b304de7ee1a4 100644 (file)
@@ -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";