Don't use php 5 only component parameter to parse_url. Props azaozz. see #6998
git-svn-id: http://svn.automattic.com/wordpress/trunk@7966 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
47e6a79b98
commit
41c7bca7d0
|
@ -104,10 +104,10 @@ function get_images_from_uri($uri) {
|
||||||
if ( false !== strpos($src, '&') )
|
if ( false !== strpos($src, '&') )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
$host = parse_url($_GET['u'], PHP_URL_HOST);
|
$host = parse_url($_GET['u']);
|
||||||
|
|
||||||
if (strpos($src, 'http://') === false) {
|
if (strpos($src, 'http://') === false) {
|
||||||
$src = 'http://'.str_replace('//','/', $host.'/'.$src);
|
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$src);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sources[] = $src;
|
$sources[] = $src;
|
||||||
|
|
Loading…
Reference in New Issue