Skip to content

Commit 46e67a0

Browse files
committed
FilesPlugin: Fix resourcetype of symlinks for PROPFIND
This fixes the commit "Draft for symlink mimetype on regular file for symlinks"
1 parent bbfba70 commit 46e67a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)