Skip to content

Commit d3a70d5

Browse files
Merge pull request #59304 from nextcloud/backport/59303/stable32
[stable32] fix(sharing): Don't redirect when accepting a share failed
2 parents 728164c + 8dbc006 commit d3a70d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_sharing/lib/Controller/AcceptController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function accept(string $shareId): Response {
5151
try {
5252
$share = $this->shareManager->acceptShare($share, $user->getUID());
5353
} catch (\Exception $e) {
54-
// Just ignore
54+
return new NotFoundResponse();
5555
}
5656

5757
$url = $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNode()->getId()]);

0 commit comments

Comments
 (0)