From 555624decf82890d0531f541e9d8062990f8362e Mon Sep 17 00:00:00 2001 From: 3D-I <480857+3D-I@users.noreply.github.com> Date: Sat, 30 May 2020 21:26:09 +0200 Subject: [PATCH] [ticket/16503] Fix WhoIs lookup PHPBB3-16503 --- phpBB/includes/functions_user.php | 3 +++ 1 file changed, 3 insertions(+) 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