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

git-svn-id: https://develop.svn.wordpress.org/trunk@8028 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2008-05-31 10:51:50 +00:00
parent e9dd827bfc
commit 52d8b76c48
1 changed files with 3 additions and 3 deletions

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>