Skip to content
Permalink
Browse files

ipv6 is now supported in stopforumspam

  • Loading branch information...
chrisgraham committed Jun 30, 2019
1 parent d2b489f commit 321f9ecbb1c298e819718ee797e57b52b139f972
Showing with 0 additions and 8 deletions.
  1. +0 −4 sources/antispam.php
  2. +0 −4 sources/failure_spammers.php
@@ -388,10 +388,6 @@ function _check_stopforumspam($user_ip, $username = null, $email = null)
$confidence_level = mixed();
$status = ANTISPAM_RESPONSE_UNLISTED;
if (strpos($user_ip, ':') !== false) { // No ipv6 support
return array(ANTISPAM_RESPONSE_ERROR, $confidence_level); // TODO: #2585
}
// Do the query with every detail we have
require_code('files');
require_code('character_sets');
@@ -72,10 +72,6 @@ function syndicate_spammer_report($ip_addr, $username, $email, $reason, $trigger
$stopforumspam_key = get_option('stopforumspam_api_key');
$can_do_stopforumspam = ($stopforumspam_key != '') && ($username != '') && ($email != '');
if (strpos($ip_addr, ':') !== false) { // No ipv6 support
$can_do_stopforumspam = false; // TODO: #2585
}
if ($can_do_stopforumspam) {
require_code('files');
require_code('character_sets');

0 comments on commit 321f9ec

Please sign in to comment.
You can’t perform that action at this time.