mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 09:58:16 +01:00
Fix to get iCal in OS X 10.6 working (again):
WebDAV RFC 4918 allows a full url or a path as <D:href>: http://www.webdav.org/specs/rfc4918.html#ELEMENT_href Some clients can NOT deal with one or the other: - KAddressbook (at least in 3.5) can NOT subscribe to addressbooks (it does not find them) if just a path is used - iCal in OS X 10.6 generates wrong requests, if a full url is used
This commit is contained in:
parent
e88e7fab4b
commit
a8c9eebf52
@ -90,6 +90,16 @@ class groupdav extends HTTP_WebDAV_Server
|
|||||||
{
|
{
|
||||||
if ($this->debug > 2) error_log('groupdav: $_SERVER='.array2string($_SERVER));
|
if ($this->debug > 2) error_log('groupdav: $_SERVER='.array2string($_SERVER));
|
||||||
|
|
||||||
|
// identify clients, which do NOT support path AND full url in <D:href> of PROPFIND request
|
||||||
|
switch(groupdav_handler::get_agent())
|
||||||
|
{
|
||||||
|
case 'kde': // KAddressbook (at least in 3.5 can NOT subscribe / does NOT find addressbook)
|
||||||
|
$this->client_require_href_as_url = true;
|
||||||
|
break;
|
||||||
|
case 'davkit': // iCal app in OS X 10.6 created wrong request, if full url given
|
||||||
|
$this->client_require_href_as_url = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
parent::HTTP_WebDAV_Server();
|
parent::HTTP_WebDAV_Server();
|
||||||
|
|
||||||
$this->translation =& $GLOBALS['egw']->translation;
|
$this->translation =& $GLOBALS['egw']->translation;
|
||||||
|
Loading…
Reference in New Issue
Block a user