mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
7da88f9103
commit
83dfe0d22c
1 changed files with 6 additions and 0 deletions
|
@ -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=',
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue