From 46e97f8975381bdebfe7b47f6ad2edc51b33112d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 11 May 2021 11:20:12 +0200 Subject: [PATCH] fix typo causing number of failed attempts on IP whitelist not to be used --- api/src/Session.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Session.php b/api/src/Session.php index 7d37495a58..1fae673db4 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -1125,7 +1125,7 @@ class Session $GLOBALS['egw_info']['server']['unsuccessful_ip_whitelist'], $matches) && ($key=array_search($ip, $matches[1])) !== false) { - $blocked = !empty($matches[3][$key]) && $false_ip > $matches[3][$key]; + $blocked = !empty($matches[2][$key]) && $false_ip > $matches[2][$key]; } else // else check with general number {