Skip to content

Commit 8dbc006

Browse files
nickvergessenbackportbot[bot]
authored andcommitted
fix(sharing): Don't redirect when accepting a share failed
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 728164c commit 8dbc006

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)