From 108a4d501770ff6f74064b3f8b1dbc97d3457ed3 Mon Sep 17 00:00:00 2001 From: Sascha Greuel Date: Sun, 5 May 2019 19:44:56 +0200 Subject: [PATCH] Fix blocking all users within the registration process See #2692 See #2920 --- wcfsetup/install/files/lib/form/RegisterForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/form/RegisterForm.class.php b/wcfsetup/install/files/lib/form/RegisterForm.class.php index 1d27627ed4..1d2d2b3345 100644 --- a/wcfsetup/install/files/lib/form/RegisterForm.class.php +++ b/wcfsetup/install/files/lib/form/RegisterForm.class.php @@ -178,7 +178,7 @@ class RegisterForm extends UserAddForm { if (BLACKLIST_SFS_ENABLE) { $this->blacklistMatches = BlacklistEntry::getMatches($this->username, $this->email, UserUtil::getIpAddress()); - if (BLACKLIST_SFS_ACTION === 'block') { + if (!empty($this->blacklistMatches) && BLACKLIST_SFS_ACTION === 'block') { throw new NamedUserException('wcf.user.register.error.blacklistMatches'); } } -- 2.20.1