]> git.wh0rd.org Git - tt-rss.git/commitdiff
auth_remote: add REDIRECT_ version of REMOTE_USER for php-cgi configured through...
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Mar 2013 09:39:26 +0000 (13:39 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 19 Mar 2013 09:39:26 +0000 (13:39 +0400)
plugins/auth_remote/init.php

index 65f188b8f89581767404464c5210a57fc9af213a..7c8d835f8d4f206f0ef0728c42ae34585e9b1a3d 100644 (file)
@@ -40,6 +40,9 @@ class Auth_Remote extends Plugin implements IAuthModule {
        function authenticate($login, $password) {
                $try_login = db_escape_string($_SERVER["REMOTE_USER"]);
 
+               // php-cgi
+               if (!$try_login) $try_login = db_escape_string($_SERVER["REDIRECT_REMOTE_USER"]);
+
                if (!$try_login) $try_login = $this->get_login_by_ssl_certificate();
 #              if (!$try_login) $try_login = "test_qqq";