From: joshuaruesweg Date: Thu, 3 Mar 2022 12:56:27 +0000 (+0100) Subject: Fix detection of ipv4 adresses for stopforumspam integration X-Git-Tag: 5.4.15_dev_1~12^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=17b3b571c93d1911b4427323db9b166af485645d;p=GitHub%2FWoltLab%2FWCF.git Fix detection of ipv4 adresses for stopforumspam integration --- diff --git a/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php b/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php index 0be5fbfa56..ee1bfd1c3c 100644 --- a/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php +++ b/wcfsetup/install/files/lib/data/blacklist/entry/BlacklistEntry.class.php @@ -39,7 +39,7 @@ class BlacklistEntry extends DatabaseObject { $conditions->add('(type = ? AND hash = ?)', ['email', self::getHash($email)]); } if (BLACKLIST_SFS_IP_ADDRESS) { - UserUtil::convertIPv6To4($ipAddress); + $ipAddress = UserUtil::convertIPv6To4($ipAddress); if ($ipAddress) { if (filter_var($ipAddress, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) !== false) { $conditions->add('(type = ? AND hash = ?)', ['ipv4', self::getHash($ipAddress)]);