Prevent archieved download on secure view

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-02-07 12:45:29 +01:00 committed by backportbot[bot]
parent edafd81a20
commit 6db47f7a6e

View file

@ -541,11 +541,14 @@ class ShareController extends AuthPublicShareController {
}
}
if (!$this->validateShare($share)) {
throw new NotFoundException();
}
if ($share->getHideDownload()) {
return new NotFoundResponse();
}
$userFolder = $this->rootFolder->getUserFolder($share->getShareOwner());
$originalSharePath = $userFolder->getRelativePath($share->getNode()->getPath());