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"
  • Loading branch information
taminob committed Dec 6, 2023
1 parent bbfba70 commit 46e67a0
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 46e67a0

Please sign in to comment.