diff --git a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php index 22197988a3..372113aead 100644 --- a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php +++ b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php @@ -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