Merge pull request #7016 from nextcloud/fix_6820

Do not error when downloading from a numeric public subfolder
This commit is contained in:
Roeland Jago Douma 2017-10-30 21:29:04 +01:00 committed by GitHub
commit c258cb5557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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());