[Pkg-owncloud-commits] [php-sabredav] 56/66: adjust comments on depth values
David Prévot
taffit at moszumanska.debian.org
Sat Jan 18 20:08:22 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit e63fd7e411f29dcc62815552e112c923915ed321
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Fri Jan 10 15:27:10 2014 +0100
adjust comments on depth values
---
lib/Sabre/DAV/CorePlugin.php | 2 +-
lib/Sabre/DAV/Server.php | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/Sabre/DAV/CorePlugin.php b/lib/Sabre/DAV/CorePlugin.php
index 385b980..9f85b55 100644
--- a/lib/Sabre/DAV/CorePlugin.php
+++ b/lib/Sabre/DAV/CorePlugin.php
@@ -316,7 +316,7 @@ class CorePlugin extends ServerPlugin {
);
$depth = $this->server->getHTTPDepth(1);
- // The only two options for the depth of a propfind is 0 or 1
+ // The only two options for the depth of a propfind is 0 or 1 - as long as depth infinity is not enabled
if (!$this->server->enablePropfindDepthInfinity && $depth != 0) $depth = 1;
$newProperties = $this->server->getPropertiesForPath($path,$requestedProperties,$depth);
diff --git a/lib/Sabre/DAV/Server.php b/lib/Sabre/DAV/Server.php
index a6b5a82..2ee8066 100644
--- a/lib/Sabre/DAV/Server.php
+++ b/lib/Sabre/DAV/Server.php
@@ -873,6 +873,7 @@ class Server extends EventEmitter {
*/
public function getPropertiesForPath($path, $propertyNames = [], $depth = 0) {
+ // The only two options for the depth of a propfind is 0 or 1 - as long as depth infinity is not enabled
if (!$this->enablePropfindDepthInfinity && $depth != 0) $depth = 1;
$path = rtrim($path,'/');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list