Update card.php
extended switch for using BasicAuth for Windows Phone and DigestAuth e.g. when iPhone tries to connect. Now Baikal is more flexible to support iPhone and Windows Phone on the fly.
Former-commit-id: 987e7ec5cd
This commit is contained in:
parent
95b18da309
commit
12c12d9d4e
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ if(!defined("BAIKAL_CARD_ENABLED") || BAIKAL_CARD_ENABLED !== TRUE) {
|
|||
}
|
||||
|
||||
# Backends
|
||||
if( BAIKAL_DAV_AUTH_TYPE == "Basic" )
|
||||
if( BAIKAL_DAV_AUTH_TYPE == "Basic" || preg_match('/Windows-Phone-WebDAV-Client/i', $_SERVER['HTTP_USER_AGENT']) )
|
||||
$authBackend = new \Baikal\Core\PDOBasicAuth($GLOBALS["DB"]->getPDO(), BAIKAL_AUTH_REALM);
|
||||
else
|
||||
$authBackend = new \Sabre\DAV\Auth\Backend\PDO($GLOBALS["DB"]->getPDO());
|
||||
|
|
Loading…
Reference in a new issue