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:
Vincent Petry 2016-03-07 11:37:49 +01:00
parent 9232a124e2
commit f9e1d4d56e
1 changed files with 1 additions and 1 deletions

View File

@ -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');