Merge pull request #19362 from nextcloud/backport/19349/stable16

[stable16] Prevent archieved download on secure view
This commit is contained in:
blizzz 2020-02-10 09:34:16 +01:00 committed by GitHub
commit c9bb2e940d

View file

@ -523,11 +523,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());