aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/DependencyInjection/DIContainer.php
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2022-11-09 18:46:54 +0100
committerJulien Veyssier <julien-nc@posteo.net>2022-12-07 13:24:50 +0100
commit4a3f3beb0babf312d83b2dc6feb7b036cd106529 (patch)
treef9e45f36c1201d5e35a475d6fdeff10b6fe3da45 /lib/private/AppFramework/DependencyInjection/DIContainer.php
parent3f6415d7133c0010b2f29b48f129f21d09cf6db6 (diff)
downloadnextcloud-server-4a3f3beb0babf312d83b2dc6feb7b036cd106529.tar.gz
nextcloud-server-4a3f3beb0babf312d83b2dc6feb7b036cd106529.zip
use bruteforce protection on all methods wrapped by PublicShareMiddleware
if an invalid token is provided or when share password is wrong Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'lib/private/AppFramework/DependencyInjection/DIContainer.php')
-rw-r--r--lib/private/AppFramework/DependencyInjection/DIContainer.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/AppFramework/DependencyInjection/DIContainer.php b/lib/private/AppFramework/DependencyInjection/DIContainer.php
index 298b9f000e3..4c413a8ae87 100644
--- a/lib/private/AppFramework/DependencyInjection/DIContainer.php
+++ b/lib/private/AppFramework/DependencyInjection/DIContainer.php
@@ -304,7 +304,8 @@ class DIContainer extends SimpleContainer implements IAppContainer {
new OC\AppFramework\Middleware\PublicShare\PublicShareMiddleware(
$c->get(IRequest::class),
$c->get(ISession::class),
- $c->get(\OCP\IConfig::class)
+ $c->get(\OCP\IConfig::class),
+ $c->get(OC\Security\Bruteforce\Throttler::class)
)
);
$dispatcher->registerMiddleware(