mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-12 22:38:52 +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;
|
return $retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
$url_info = parse_url($src);
|
$url_info = @parse_url($src);
|
||||||
|
if (empty($url_info['host'])
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
$host = $url_info['host'];
|
$host = $url_info['host'];
|
||||||
$port = (isset($url_info['port'])) ? $url_info['port'] : 0;
|
$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))
|
if (empty($port))
|
||||||
{
|
{
|
||||||
switch(strtolower($protocol))
|
switch(strtolower($protocol))
|
||||||
|
|
Loading…
Add table
Reference in a new issue