diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-06-21 14:33:56 +0300 |
---|---|---|
committer | Max <max@nextcloud.com> | 2022-07-06 11:51:51 +0300 |
commit | 4f5a37dcbddaf79ae7416860f9c9334b17936175 (patch) | |
tree | 7e20b54634158b04b15deb22d548eadcfe839f5f /lib | |
parent | 82b1234031585e26e3745809992426808ed60179 (diff) |
Assume that the default depth is 1 in DAV
Otherwise if the Depth header is ommited, the workspace information
won't be display at all.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DAV/WorkspacePlugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DAV/WorkspacePlugin.php b/lib/DAV/WorkspacePlugin.php index 764aa1f36..db5d136cd 100644 --- a/lib/DAV/WorkspacePlugin.php +++ b/lib/DAV/WorkspacePlugin.php @@ -96,7 +96,7 @@ class WorkspacePlugin extends ServerPlugin { } // Only return the property for the parent node and ignore it for further in depth nodes - if ($propFind->getDepth() === $this->server->getHTTPDepth()) { + if ($propFind->getDepth() === $this->server->getHTTPDepth(1)) { $propFind->handle(self::WORKSPACE_PROPERTY, function () use ($node) { /** @var Folder[] $nodes */ $nodes = $this->rootFolder->getUserFolder($this->userId)->getById($node->getId()); |