1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02:00

Merge branch '3.1.x'

* 3.1.x:
  [ticket/13948] Correctly forwarding to the RIR for whois feature
This commit is contained in:
Andreas Fischer
2015-06-21 21:53:03 +02:00

View File

@@ -1420,7 +1420,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)
{