Skip to content

Commit 2bc28c3

Browse files
committed
FilesPlugin: Fix resourcetype of symlinks for PROPFIND
This fixes the commit "Draft for symlink mimetype on regular file for symlinks" Signed-off-by: Tamino Bauknecht <dev@tb6.eu>
1 parent bf7109b commit 2bc28c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dav/lib/Connector/Sabre/FilesPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ public function handleGetProperties(PropFind $propFind, \Sabre\DAV\INode $node)
460460
$propFind->handle(self::RESOURCETYPE_PROPERTYNAME, function() use ($node) {
461461
$info = $node->getFileInfo();
462462
if ($this->symlinkManager->isSymlink($info)) {
463-
return '{DAV:}symlink';
463+
return new \Sabre\DAV\Xml\Property\ResourceType(['{DAV:}symlink']);
464464
}
465465
return null;
466466
});

0 commit comments

Comments
 (0)