aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas <jonas@freesources.org>2024-12-17 11:02:05 +0100
committerGitHub <noreply@github.com>2024-12-17 11:02:05 +0100
commit089a5fd827b3d97448e6998b661b4ae48f537fbc (patch)
tree607380d65bfe16ff98c07695be348b3aab585cea
parent03b3ac7cf50a00e7e3b3d8a3ef8eb25605b5752f (diff)
parent3737727a044cb72d6e70364f7af16e4f4643fdb7 (diff)
downloadnextcloud-server-089a5fd827b3d97448e6998b661b4ae48f537fbc.tar.gz
nextcloud-server-089a5fd827b3d97448e6998b661b4ae48f537fbc.zip
Merge pull request #49884 from nextcloud/backport/49801/stable30
[stable30] fix(ReferenceApiController): Bump rate limit for public resolve endpoint
-rw-r--r--core/Controller/ReferenceApiController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/ReferenceApiController.php b/core/Controller/ReferenceApiController.php
index cba91b976e2..2ba99b0cc7b 100644
--- a/core/Controller/ReferenceApiController.php
+++ b/core/Controller/ReferenceApiController.php
@@ -128,7 +128,7 @@ class ReferenceApiController extends \OCP\AppFramework\OCSController {
*/
#[ApiRoute(verb: 'GET', url: '/resolvePublic', root: '/references')]
#[PublicPage]
- #[AnonRateLimit(limit: 10, period: 120)]
+ #[AnonRateLimit(limit: 25, period: 120)]
public function resolveOnePublic(string $reference, string $sharingToken): DataResponse {
/** @var ?CoreReference $resolvedReference */
$resolvedReference = $this->referenceManager->resolveReference(trim($reference), true, trim($sharingToken))?->jsonSerialize();