mirror of
https://github.com/nextcloud/server.git
synced 2026-04-23 07:08:34 -04:00
Merge pull request #26958 from nextcloud/enh/MountPublicLinkController/throttling
Throttle MountPublicLinkController when share is not found
This commit is contained in:
commit
9b36252de0
1 changed files with 3 additions and 1 deletions
|
|
@ -142,7 +142,9 @@ class MountPublicLinkController extends Controller {
|
|||
[, $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
|
||||
|
|
|
|||
Loading…
Reference in a new issue