From 950ef2dcd57218165bc0dba1402dca29b9d0be65 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 1 Jul 2026 14:25:26 +0200 Subject: [PATCH] fix(TaskProcessing): Fix file output validation Signed-off-by: Marcel Klehr --- lib/private/TaskProcessing/Manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 029915a7ce1..233aa9f992e 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -1615,7 +1615,7 @@ class Manager implements IManager { $file = $folder->newFile(time() . '-' . rand(1, 100000) . ($ext ? '.' . $ext : ''), $data); $newOutput[$key] = $file->getId(); // polymorphic call to SimpleFile } else { - $newOutput = []; + $newOutput[$key] = []; foreach ($output[$key] as $item) { if ($item instanceof FileShaped) { $data = $item->getData(); @@ -1772,7 +1772,7 @@ class Manager implements IManager { $newOutput[$key] = $this->validateFileId($output[$key]); } else { // Is list of file IDs - $newOutput = []; + $newOutput[$key] = []; foreach ($output[$key] as $item) { $newOutput[$key][] = $this->validateFileId($item); }