Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Throttle MountPublicLinkController when share is not found
Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer authored and backportbot[bot] committed May 12, 2021
commit 1ed66f2ac17a2b4effba46a13ed735b67a1e94ba
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ public function createFederatedShare($shareWith, $token, $password = '') {
list(, $server) = $this->addressHandler->splitUserRemote($shareWith);
$share = $this->shareManager->getShareByToken($token);
} catch (HintException $e) {
return new JSONResponse(['message' => $e->getHint()], Http::STATUS_BAD_REQUEST);
$response = new JSONResponse(['message' => $e->getHint()], Http::STATUS_BAD_REQUEST);
$response->throttle();
return $response;
}

// make sure that user is authenticated in case of a password protected link
Expand Down