fixed not working update of events, as etag2value still expected EGw- -wGE around ETag and adding Apple iCal 5.0.1 under OS X 10.7.2 user-agent

This commit is contained in:
Ralf Becker 2011-11-08 21:10:37 +00:00
parent afe5a510db
commit 1aca51010a
2 changed files with 3 additions and 1 deletions

View File

@ -220,6 +220,7 @@ class groupdav extends HTTP_WebDAV_Server
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
case 'calendarstore': // Apple iCal 5.0.1 under OS X 10.7.2
$this->client_require_href_as_url = false;
$this->cnrnd = true;
break;

View File

@ -229,7 +229,7 @@ abstract class groupdav_handler
*/
static function etag2value($etag)
{
list(,$val) = explode(':',substr($etag,4,-4),2);
list(,$val) = explode(':',$etag,2);
return $val;
}
@ -353,6 +353,7 @@ abstract class groupdav_handler
'iphone' => 'iphone', // Apple iPhone iCal
'davkit' => 'davkit', // Apple iCal 10.6
'coredav' => 'coredav', // Apple iCal 10.7
'calendarstore' => 'calendarstore', // Apple iCal 5.0.1 under OS X 10.7.2
'dataaccess' => 'dataaccess', // Apple addressbook iPhone
'cfnetwork' => 'cfnetwork', // Apple Addressbook 10.6/7
'bionicmessage.net' => 'funambol', // funambol GroupDAV connector from bionicmessage.net