Skip to content

Commit dc0ed36

Browse files
committed
fix(files_sharing): rate limit share creation 200 times per 10 minutes
Was unlimited before fbb7727 setting to 20/600s which proved to be too low for some legitimate human actions, e.g. chat messages with attachments in Talk. Fix that by bumping to some arbitrary higher value, until some clearer justification for having it lower or higher is determined. Signed-off-by: biredel <67849440+biredel@users.noreply.github.com>
1 parent 60d71a9 commit dc0ed36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ public function deleteShare(string $id): DataResponse {
587587
* 200: Share created
588588
*/
589589
#[NoAdminRequired]
590-
#[UserRateLimit(limit: 20, period: 600)]
590+
#[UserRateLimit(limit: 200, period: 600)]
591591
public function createShare(
592592
?string $path = null,
593593
?int $permissions = null,

0 commit comments

Comments
 (0)