mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-13 13:16:36 +02:00
[ticket/16508] Fix WhoIs lookup
PHPBB3-16508
This commit is contained in:
@ -1470,8 +1470,11 @@ function user_ipwhois($ip)
|
||||
|
||||
$ipwhois = '';
|
||||
|
||||
// Limit the query to all possible flags (whois.arin.net)
|
||||
$ip = 'z ' . $ip;
|
||||
if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6))
|
||||
{
|
||||
// Limit the query to all possible flags (whois.arin.net)
|
||||
$ip = 'z ' . $ip;
|
||||
}
|
||||
|
||||
if (($fsk = @fsockopen($whois_host, 43)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user