X Tutup
Skip to content

Commit 6b00cc3

Browse files
Merge pull request #1169 from ByteHamster/trim-error
Fixed null path error
2 parents e03a263 + 92af13b commit 6b00cc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/CalDAV/Plugin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ public function getHTTPMethods($uri)
7777
// parents extend IExtendedCollection
7878
list($parent, $name) = Uri\split($uri);
7979

80+
if ('' === $uri) {
81+
$parent = '';
82+
}
83+
8084
$node = $this->server->tree->getNodeForPath($parent);
8185

8286
if ($node instanceof DAV\IExtendedCollection) {

0 commit comments

Comments
 (0)
X Tutup