Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-06-22 20:54:13 +0300
committerLukas Reschke <lukas@statuscode.ch>2021-06-22 20:54:13 +0300
commitd6a2f00befda97f25f13dae8c11be75077a358a2 (patch)
tree5709e207533f0dcdeda18541dee21ec4eb4ba7a6 /apps/dav/appinfo/v1/publicwebdav.php
parent1c8f5cbc8275606d290d0ce56fb329f3106ee7f6 (diff)
Throttle on public DAV endpoint
We should throttle whenever an invalid request is sent to the public WebDAV endpoint. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'apps/dav/appinfo/v1/publicwebdav.php')
-rw-r--r--apps/dav/appinfo/v1/publicwebdav.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/appinfo/v1/publicwebdav.php b/apps/dav/appinfo/v1/publicwebdav.php
index b0b87c66ca6..c99c5bcd833 100644
--- a/apps/dav/appinfo/v1/publicwebdav.php
+++ b/apps/dav/appinfo/v1/publicwebdav.php
@@ -41,7 +41,8 @@ OC_Util::obEnd();
$authBackend = new OCA\DAV\Connector\PublicAuth(
\OC::$server->getRequest(),
\OC::$server->getShareManager(),
- \OC::$server->getSession()
+ \OC::$server->getSession(),
+ \OC::$server->getBruteForceThrottler()
);
$authPlugin = new \Sabre\DAV\Auth\Plugin($authBackend);