From 3123a60ef31432fcec6583314858ff8ad28b0b43 Mon Sep 17 00:00:00 2001 From: Tamino Bauknecht Date: Wed, 6 Dec 2023 23:16:09 +0100 Subject: [PATCH] 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 --- apps/dav/lib/Connector/Sabre/FilesPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php index 44c5b9d537781..df63f33253427 100644 --- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php @@ -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; });