mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
#i51 - #i63 - #i64
git-svn-id: file:///svn/phpbb/trunk@8095 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1112,6 +1112,13 @@ function user_ipwhois($ip)
|
||||
{
|
||||
$ipwhois = '';
|
||||
|
||||
// Check IP
|
||||
// Only supporting IPv4 at the moment...
|
||||
if (empty($ip) || !preg_match(get_preg_expression('ipv4'), $ip))
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
$match = array(
|
||||
'#RIPE\.NET#is' => 'whois.ripe.net',
|
||||
'#whois\.apnic\.net#is' => 'whois.apnic.net',
|
||||
@@ -1147,7 +1154,10 @@ function user_ipwhois($ip)
|
||||
}
|
||||
}
|
||||
|
||||
return $ipwhois;
|
||||
$ipwhois = htmlspecialchars($ipwhois);
|
||||
|
||||
// Magic URL ;)
|
||||
return trim(make_clickable($ipwhois, false, ''));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user