* 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 12:59:23 +00:00
parent 10e5735e16
commit 79d12b67be
2 changed files with 4 additions and 2 deletions

View File

@ -141,6 +141,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

@ -344,9 +344,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)