mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-21 09:01:29 +02:00
Huh?
#10787 git-svn-id: file:///svn/phpbb/trunk@7545 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -924,10 +924,14 @@ function get_remote_avatar_dim($src, $axis)
|
||||
return $retval;
|
||||
}
|
||||
|
||||
$url_info = parse_url($src);
|
||||
$url_info = @parse_url($src);
|
||||
if (empty($url_info['host'])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
$host = $url_info['host'];
|
||||
$port = (isset($url_info['port'])) ? $url_info['port'] : 0;
|
||||
$protocol = $url_info['scheme'];
|
||||
$protocol = (isset($url_info['scheme'])) ? $url_info['scheme'] : 'http';
|
||||
if (empty($port))
|
||||
{
|
||||
switch(strtolower($protocol))
|
||||
|
Reference in New Issue
Block a user