1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander
2020-06-07 22:32:02 +02:00
4 changed files with 51 additions and 5 deletions

View File

@@ -1464,13 +1464,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);