* CalDAV: user agent detection of OS X 10.7 Lion iCal app (CoreDav instead of DavKit)

This commit is contained in:
Ralf Becker 2011-08-02 13:03:37 +00:00
parent ae535d8be0
commit d8f0c274f1
2 changed files with 4 additions and 2 deletions

View File

@ -142,6 +142,7 @@ class groupdav extends HTTP_WebDAV_Server
$this->cnrnd = true;
break;
case 'davkit': // iCal app in OS X 10.6 created wrong request, if full url given
case 'coredav': // iCal app in OS X 10.7
$this->client_require_href_as_url = false;
$this->cnrnd = true;
break;

View File

@ -336,9 +336,10 @@ abstract class groupdav_handler
$user_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
foreach(array(
'iphone' => 'iphone', // Apple iPhone iCal
'davkit' => 'davkit', // Apple iCal
'davkit' => 'davkit', // Apple iCal 10.6
'coredav' => 'coredav', // Apple iCal 10.7
'dataaccess' => 'dataaccess', // Apple addressbook iPhone
'cfnetwork' => 'cfnetwork', // Apple Addressbook
'cfnetwork' => 'cfnetwork', // Apple Addressbook 10.6/7
'bionicmessage.net' => 'funambol', // funambol GroupDAV connector from bionicmessage.net
'zideone' => 'zideone', // zideone outlook plugin
'lightning' => 'lightning', // Lighting (SOGo connector for addressbook)