mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/10195] Return false in session::check_dnsbl() when IPv6 is passed.
There is no support for IPv6 addresses in the blacklists we check right now. PHPBB3-10195
This commit is contained in:
@@ -1238,6 +1238,12 @@ class session
|
|||||||
$ip = $this->ip;
|
$ip = $this->ip;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Neither Spamhaus nor Spamcop supports IPv6 addresses.
|
||||||
|
if (strpos($ip, ':') !== false)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$dnsbl_check = array(
|
$dnsbl_check = array(
|
||||||
'sbl.spamhaus.org' => 'http://www.spamhaus.org/query/bl?ip=',
|
'sbl.spamhaus.org' => 'http://www.spamhaus.org/query/bl?ip=',
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user