Don't prepend the host if it's already a full URL.

git-svn-id: http://svn.automattic.com/wordpress/trunk@8028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2008-05-31 10:51:50 +00:00
parent 2e51769171
commit 727379047b

View File

@ -98,11 +98,11 @@ function get_images_from_uri($uri) {
if ( empty($matches[1]) ) return '';
$sources = array();
foreach ($matches[1] as $src) {
if ( false !== strpos($src, '&') )
continue;
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src);
if ( !strstr( $src, 'http://' ) )
$src = 'http://'.str_replace('//','/', $host['host'].'/'.$host['path'].'/'.$src);
$sources[] = $src;
}
@ -393,4 +393,4 @@ $url = clean_url($_GET['u']);
<?php } */?>
</body>
</html>
</html>