aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2015-06-21 15:48:28 +0700
committerrxu <rxu@mail.ru>2015-06-21 15:48:28 +0700
commitbcac964cd03626e2139e021e3ed0ff63f8c76c67 (patch)
treeb823641e52eb471d6d2b60c61e4c741b82a0a946 /phpBB/includes/functions_user.php
parentda7b24449d1767e4afec653399aaf2c0db4524a5 (diff)
downloadforums-bcac964cd03626e2139e021e3ed0ff63f8c76c67.tar
forums-bcac964cd03626e2139e021e3ed0ff63f8c76c67.tar.gz
forums-bcac964cd03626e2139e021e3ed0ff63f8c76c67.tar.bz2
forums-bcac964cd03626e2139e021e3ed0ff63f8c76c67.tar.xz
forums-bcac964cd03626e2139e021e3ed0ff63f8c76c67.zip
[ticket/13948] Correctly forwarding to the RIR for whois feature
Allow any space count in the ReferralServer string for whois services response. PHPBB3-13948
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php2
1 files changed, 1 insertions, 1 deletions
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)
{