aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2023-08-11 16:36:10 +0200
committerChristoph Wurst <ChristophWurst@users.noreply.github.com>2024-02-23 08:52:59 +0100
commitdc7f2baf2649df6a0f65a3348346d76d8617cfeb (patch)
treeb8f1111263b678d2957f23e4c0ac475f46164d40 /apps/dav/appinfo
parentc942fb5db235908dc380ac31a8668aaa9bedb768 (diff)
downloadnextcloud-server-dc7f2baf2649df6a0f65a3348346d76d8617cfeb.tar.gz
nextcloud-server-dc7f2baf2649df6a0f65a3348346d76d8617cfeb.zip
fix(dav): Rate limit calendar/subscription creation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r--apps/dav/appinfo/v1/caldav.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/dav/appinfo/v1/caldav.php b/apps/dav/appinfo/v1/caldav.php
index d8b4feb4252..e7924d9eedc 100644
--- a/apps/dav/appinfo/v1/caldav.php
+++ b/apps/dav/appinfo/v1/caldav.php
@@ -29,6 +29,7 @@
use OC\KnownUser\KnownUserService;
use OCA\DAV\CalDAV\CalDavBackend;
use OCA\DAV\CalDAV\CalendarRoot;
+use OCA\DAV\CalDAV\Security\RateLimitingPlugin;
use OCA\DAV\Connector\LegacyDAVACL;
use OCA\DAV\Connector\Sabre\Auth;
use OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin;
@@ -116,6 +117,7 @@ if ($sendInvitations) {
$server->addPlugin(\OC::$server->query(\OCA\DAV\CalDAV\Schedule\IMipPlugin::class));
}
$server->addPlugin(new ExceptionLoggerPlugin('caldav', $logger));
+$server->addPlugin(\OCP\Server::get(RateLimitingPlugin::class));
// And off we go!
$server->exec();