mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-13 08:00:15 +00:00
Fix handling of Basic Auth headers.
This commit is contained in:
parent
c846104d94
commit
622512e156
@ -148,7 +148,7 @@ class DAViCalSession extends Session
|
||||
* We allow basic auth to apply also, if present, though we check everything else first...
|
||||
*/
|
||||
if ( isset($_SERVER['PHP_AUTH_USER']) && !$this->logged_in && $_SERVER['PHP_AUTH_USER'] != "" && $_SERVER['PHP_AUTH_PW'] != "" && ! $_COOKIE['NoAutoLogin'] ) {
|
||||
if ( $this->Login($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'],true)) {
|
||||
if ( $this->Login($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'],false)) {
|
||||
setcookie('NoAutoLogin',1,0);
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user