Skip to content

Commit

Permalink
FilesPlugin: Fix resourcetype of symlinks for PROPFIND
Browse files Browse the repository at this point in the history
This fixes the commit
"Draft for symlink mimetype on regular file for symlinks"

Signed-off-by: Tamino Bauknecht <[email protected]>
  • Loading branch information
taminob committed Dec 7, 2023
1 parent c1099fe commit 3123a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/FilesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public function handleGetProperties(PropFind $propFind, \Sabre\DAV\INode $node)
$propFind->handle(self::RESOURCETYPE_PROPERTYNAME, function() use ($node) {
$info = $node->getFileInfo();
if ($this->symlinkManager->isSymlink($info)) {
return '{DAV:}symlink';
return new \Sabre\DAV\Xml\Property\ResourceType(['{DAV:}symlink']);
}
return null;
});
Expand Down

0 comments on commit 3123a60

Please sign in to comment.