From: Sascha Greuel Date: Sun, 5 May 2019 17:44:56 +0000 (+0200) Subject: Fix blocking all users within the registration process X-Git-Tag: 5.2.0_Alpha_1~88 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=108a4d501770ff6f74064b3f8b1dbc97d3457ed3;p=GitHub%2FWoltLab%2FWCF.git Fix blocking all users within the registration process See #2692 See #2920 --- 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'); } }