[packages/w3pw] under FCGI mode, PHP_AUTH_* vars are not set
glen
glen at pld-linux.org
Thu Aug 13 12:12:35 CEST 2015
commit 08015c4ab6e2f45017152d08c780cd1aed3bfbbd
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Aug 13 13:12:31 2015 +0300
under FCGI mode, PHP_AUTH_* vars are not set
authpassword.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/authpassword.patch b/authpassword.patch
index 4648a3c..95164b1 100644
--- a/authpassword.patch
+++ b/authpassword.patch
@@ -13,7 +13,7 @@
+}
+
+// use master password if HTTP Basic Auth is set
-+$authenticated = !empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_PW']);
++$authenticated = !empty($_SERVER['PHP_AUTH_USER']) || (isset($_SERVER['FCGI_ROLE']) && !empty($_SERVER['REDIRECT_AUTHENTICATE_UID']));
+if ($authenticated && isset($master_password)) {
+ setup_session($master_password);
+}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/w3pw.git/commitdiff/08015c4ab6e2f45017152d08c780cd1aed3bfbbd
More information about the pld-cvs-commit
mailing list