mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-21 01:54:23 +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:
parent
33effe2a70
commit
c48d19895e
@ -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') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user