Fix blocking all users within the registration process
authorSascha Greuel <sascha@softcreatr.de>
Sun, 5 May 2019 17:44:56 +0000 (19:44 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Tue, 14 May 2019 13:07:28 +0000 (15:07 +0200)
See #2692
See #2920

wcfsetup/install/files/lib/form/RegisterForm.class.php

index 1d27627ed42590539689373f8521bf3e77975ad4..1d2d2b33455d1c6a7a4ea1d00ac0a5f9cf91dbe0 100644 (file)
@@ -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');
                        }
                }