From: <ral...@us...> - 2015-09-03 06:54:17
|
Author: ralfbecker Date: Thu Sep 3 08:54:06 2015 New Revision: 53553 URL: http://svn.stylite.de/viewvc/egroupware?rev=53553&view=rev Log: values for depth are 0, 1, "infinit" or not set which has to be interpreted as "infinit" Modified: trunk/phpgwapi/inc/class.groupdav.inc.php Modified: trunk/phpgwapi/inc/class.groupdav.inc.php URL: http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/inc/class.groupdav.inc.php?rev=53553&r1=53552&r2=53553&view=diff ============================================================================== --- trunk/phpgwapi/inc/class.groupdav.inc.php (original) +++ trunk/phpgwapi/inc/class.groupdav.inc.php Thu Sep 3 08:54:06 2015 @@ -416,9 +416,10 @@ $files['files'][0] = $this->add_app($app,$app=='addressbook'&&$handler->get_agent()=='kde',$user, $this->_slashify($options['path'])); - // Hack for iOS 5.0.1 addressbook to stop asking directory gateway permissions with depth=1 + // Hack for iOS 5.0.1 addressbook to stop asking directory gateway permissions with depth != 0 + // values for depth are 0, 1, "infinit" or not set which has to be interpreted as "infinit" if ($method == 'PROPFIND' && $options['path'] == '/addressbook/' && - $options['depth'] > 0 && $handler->get_agent() == 'dataaccess') + (!isset($options['depth']) || $options['depth']) && $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; |