diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-05-12 12:27:24 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-05-12 12:27:24 +0000 |
commit | efb25cc9f19e45edc3781892bca8f8ff933c2fbf (patch) | |
tree | 1282814b7c5f76b6d4793208462b8119ca168caf /phpBB/includes/functions_convert.php | |
parent | 1334c39ea102d1389b21934e21a3c5812c55d85a (diff) | |
download | forums-efb25cc9f19e45edc3781892bca8f8ff933c2fbf.tar forums-efb25cc9f19e45edc3781892bca8f8ff933c2fbf.tar.gz forums-efb25cc9f19e45edc3781892bca8f8ff933c2fbf.tar.bz2 forums-efb25cc9f19e45edc3781892bca8f8ff933c2fbf.tar.xz forums-efb25cc9f19e45edc3781892bca8f8ff933c2fbf.zip |
Huh?
#10787
git-svn-id: file:///svn/phpbb/trunk@7545 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_convert.php')
-rw-r--r-- | phpBB/includes/functions_convert.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php index 4f7aeb8f9b..a8caa6a63f 100644 --- a/phpBB/includes/functions_convert.php +++ b/phpBB/includes/functions_convert.php @@ -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)) |