diff options
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r-- | phpBB/includes/session.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index de78969c3f..676b2c9518 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -895,13 +895,26 @@ class session $quads = explode('.', $ip); $reverse_ip = $quads[3] . '.' . $quads[2] . '.' . $quads[1] . '.' . $quads[0]; + // Need to be listed on all servers... + $listed = true; + $info = array(); + foreach ($dnsbl_check as $dnsbl => $lookup) { if (phpbb_checkdnsrr($reverse_ip . '.' . $dnsbl . '.', 'A') === true) { - return array($dnsbl, $lookup . $ip); + $info = array($dnsbl, $lookup . $ip); + } + else + { + $listed = false; } } + + if ($listed) + { + return $info; + } } return false; |