aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnna Larch <anna@nextcloud.com>2024-09-15 16:55:31 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-16 09:08:57 +0000
commitc49da2186aaf1e572f0e01b469d55eb3324acc85 (patch)
tree94dba6a69ec7d14a0a8de7a41c8f50df0230cee8
parent4ada11453ff768a08cac4ec2f4146bc6a2955609 (diff)
downloadnextcloud-server-c49da2186aaf1e572f0e01b469d55eb3324acc85.tar.gz
nextcloud-server-c49da2186aaf1e572f0e01b469d55eb3324acc85.zip
fix(filesreport): cast fileId to integerbackport/48031/stable29
Signed-off-by: Anna Larch <anna@nextcloud.com>
-rw-r--r--apps/dav/lib/Connector/Sabre/FilesReportPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
index 6a8cb3f0f59..ccb6d91ffef 100644
--- a/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/FilesReportPlugin.php
@@ -430,7 +430,7 @@ class FilesReportPlugin extends ServerPlugin {
$results = [];
foreach ($fileIds as $fileId) {
- $entry = $folder->getFirstNodeById($fileId);
+ $entry = $folder->getFirstNodeById((int)$fileId);
if ($entry) {
$results[] = $this->wrapNode($entry);
}