diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2021-06-22 20:54:13 +0300 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2021-06-22 20:54:13 +0300 |
commit | d6a2f00befda97f25f13dae8c11be75077a358a2 (patch) | |
tree | 5709e207533f0dcdeda18541dee21ec4eb4ba7a6 /apps/dav/appinfo | |
parent | 1c8f5cbc8275606d290d0ce56fb329f3106ee7f6 (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')
-rw-r--r-- | apps/dav/appinfo/v1/publicwebdav.php | 3 |
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); |