mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
Huh?
#10787 git-svn-id: file:///svn/phpbb/trunk@7545 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1334c39ea1
commit
efb25cc9f1
1 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue