Browse Source

Do not error when downloading from a numeric public subfolder

Fixes #6820

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v13.0.0beta1
Roeland Jago Douma 6 years ago
parent
commit
638be96232
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      apps/files_sharing/lib/Controller/ShareController.php

+ 4
- 0
apps/files_sharing/lib/Controller/ShareController.php View File

@@ -458,6 +458,10 @@ class ShareController extends Controller {
if ($files_list === null) {
$files_list = [$files];
}
// Just in case $files is a single int like '1234'
if (!is_array($files_list)) {
$files_list = [$files_list];
}
}

$userFolder = $this->rootFolder->getUserFolder($share->getShareOwner());

Loading…
Cancel
Save