fix(TaskProcessing): Fix file output validation

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/61689/head
Marcel Klehr 2 months ago
parent 9a983cca76
commit 950ef2dcd5
  1. 4
      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);
}

Loading…
Cancel
Save