mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 07:43:18 -04:00
Fix archive file name when downloading public share
When download a public link share folder using the button on the top right, it doesn't provide a list of files. This fix makes sure to trigger the correct logic when no file list was given.
This commit is contained in:
parent
9232a124e2
commit
f9e1d4d56e
1 changed files with 1 additions and 1 deletions
|
|
@ -479,7 +479,7 @@ class ShareController extends Controller {
|
|||
$this->emitAccessShareHook($share);
|
||||
|
||||
// download selected files
|
||||
if (!is_null($files)) {
|
||||
if (!is_null($files) && $files !== '') {
|
||||
// FIXME: The exit is required here because otherwise the AppFramework is trying to add headers as well
|
||||
// after dispatching the request which results in a "Cannot modify header information" notice.
|
||||
OC_Files::get($originalSharePath, $files_list, $_SERVER['REQUEST_METHOD'] == 'HEAD');
|
||||
|
|
|
|||
Loading…
Reference in a new issue