mirror of
https://github.com/nextcloud/server.git
synced 2026-05-15 01:49:53 -04:00
Merge pull request #19362 from nextcloud/backport/19349/stable16
[stable16] Prevent archieved download on secure view
This commit is contained in:
commit
c9bb2e940d
1 changed files with 4 additions and 1 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue