From bcac964cd03626e2139e021e3ed0ff63f8c76c67 Mon Sep 17 00:00:00 2001 From: rxu Date: Sun, 21 Jun 2015 15:48:28 +0700 Subject: [ticket/13948] Correctly forwarding to the RIR for whois feature Allow any space count in the ReferralServer string for whois services response. PHPBB3-13948 --- phpBB/includes/functions_user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/includes/functions_user.php') diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 815f07d2e4..c46653db9e 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1402,7 +1402,7 @@ function user_ipwhois($ip) $match = array(); // Test for referrals from $whois_host to other whois databases, roll on rwhois - if (preg_match('#ReferralServer: whois://(.+)#im', $ipwhois, $match)) + if (preg_match('#ReferralServer:[\x20]*whois://(.+)#im', $ipwhois, $match)) { if (strpos($match[1], ':') !== false) { -- cgit v1.2.1