diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index f2e73229e8..d39dbed5ff 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1470,6 +1470,9 @@ function user_ipwhois($ip) $ipwhois = ''; + // Limit the query to all possible flags (whois.arin.net) + $ip = 'z ' . $ip; + if (($fsk = @fsockopen($whois_host, 43))) { // CRLF as per RFC3912