mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Support use of HTTP_AUTHORIZATION in addition to AUTHORIZATION cgi.
This is supplied by older versions of FastCGI.
This commit is contained in:
1 parent
33effe2a70
commit
c48d19895e
1 file changed
+2
@@ -101,6 +101,8 @@ class HTTPAuthSession {
|
||||
/**
|
||||
* Get HTTP Auth to work with PHP+FastCGI
|
||||
*/
|
||||
if ( !isset($_SERVER["AUTHORIZATION"]) && isset($_SERVER["HTTP_AUTHORIZATION"]) && !empty($_SERVER["HTTP_AUTHORIZATION"]))
|
||||
$_SERVER["AUTHORIZATION"] = $_SERVER["HTTP_AUTHORIZATION"];
|
||||
if (isset($_SERVER["AUTHORIZATION"]) && !empty($_SERVER["AUTHORIZATION"])) {
|
||||
list ($type, $cred) = split (" ", $_SERVER['AUTHORIZATION']);
|
||||
if ($type == 'Basic') {
|
||||
|
||||
Reference in new issue
Block a user