From 559d0ee15ce1b808eac46ffefcd9f3f123b6e5d9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 2 Sep 2015 13:38:36 +0000 Subject: [PATCH] do not show warning of force Depth: 0, if depth is already 0 --- phpgwapi/inc/class.groupdav.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.groupdav.inc.php b/phpgwapi/inc/class.groupdav.inc.php index 91d16cf602..caa62f063f 100644 --- a/phpgwapi/inc/class.groupdav.inc.php +++ b/phpgwapi/inc/class.groupdav.inc.php @@ -417,7 +417,8 @@ class groupdav extends HTTP_WebDAV_Server $this->_slashify($options['path'])); // Hack for iOS 5.0.1 addressbook to stop asking directory gateway permissions with depth=1 - if ($method == 'PROPFIND' && $options['path'] == '/addressbook/' && $handler->get_agent() == 'dataaccess') + if ($method == 'PROPFIND' && $options['path'] == '/addressbook/' && + $options['depth'] > 0 && $handler->get_agent() == 'dataaccess') { $this->log(__CLASS__."::$method(".array2string($options).') Enabling hack for iOS 5.0.1 addressbook: force Depth: 0 on PROPFIND for directory gateway!'); return true;