diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 58de5ab0de..35ce73a424 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1470,13 +1470,11 @@ 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 - fputs($fsk, "$ip\r\n"); + // Z to limit the query to all possible flags (whois.arin.net) + fputs($fsk, "z $ip\r\n"); while (!feof($fsk)) { $ipwhois .= fgets($fsk, 1024);