mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #19361 from nextcloud/backport/19349/stable17
[stable17] Prevent archieved download on secure view
This commit is contained in:
commit
c8631497b9
1 changed files with 4 additions and 1 deletions
|
|
@ -524,11 +524,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