From 1d1a03ac53a2f82d71f6d86c8ba555a5dbd1f250 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sun, 7 Jun 2026 17:12:56 +0200 Subject: [PATCH] fix(dav): properly handle files metadata `PropFind::handle` expects a callable and fallsback to value, but if you pass a string like `Date` thats also a callable for PHP. So always put the value as the return value of a callable. Signed-off-by: Ferdinand Thiessen --- 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 ded60e852bfd7..1e9c39f031101 100644 --- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php @@ -461,7 +461,7 @@ public function handleGetProperties(PropFind $propFind, \Sabre\DAV\INode $node) }); foreach ($node->getFileInfo()->getMetadata() as $metadataKey => $metadataValue) { - $propFind->handle(self::FILE_METADATA_PREFIX . $metadataKey, $metadataValue); + $propFind->handle(self::FILE_METADATA_PREFIX . $metadataKey, fn () => $metadataValue); } $propFind->handle(self::HIDDEN_PROPERTYNAME, function () use ($node) {