Skip to content

Commit

Permalink
Merge pull request #1169 from ByteHamster/trim-error
Browse files Browse the repository at this point in the history
Fixed null path error
  • Loading branch information
DeepDiver1975 authored Aug 6, 2019
2 parents e03a263 + 92af13b commit 6b00cc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/CalDAV/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ public function getHTTPMethods($uri)
// parents extend IExtendedCollection
list($parent, $name) = Uri\split($uri);

if ('' === $uri) {
$parent = '';
}

$node = $this->server->tree->getNodeForPath($parent);

if ($node instanceof DAV\IExtendedCollection) {
Expand Down

0 comments on commit 6b00cc3

Please sign in to comment.