From 9bf19752070d84e9532c0cd7d580994290897572 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 14 Aug 2023 20:53:06 +0200 Subject: [PATCH] fixup! feat(security): Add a bruteforce protection backend base on memcache --- lib/private/Security/Bruteforce/Throttler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Security/Bruteforce/Throttler.php b/lib/private/Security/Bruteforce/Throttler.php index 389e899c1a9c3..2ee4c23cd1ef6 100644 --- a/lib/private/Security/Bruteforce/Throttler.php +++ b/lib/private/Security/Bruteforce/Throttler.php @@ -204,7 +204,7 @@ public function getAttempts(string $ip, string $action = '', float $maxAgeHours return 0; } - $maxAgeTimestamp = $this->timeFactory->getTime() - 3600 * $maxAgeHours; + $maxAgeTimestamp = (int) ($this->timeFactory->getTime() - 3600 * $maxAgeHours); return $this->backend->getAttempts( $ipAddress->getSubnet(),