From 727379047b62c5a8cf2e8c5b085a2e70d90a439e Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 31 May 2008 10:51:50 +0000 Subject: [PATCH] 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 --- wp-admin/press-this.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index dcde0ffdc0..1df7c697f8 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -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']); - \ No newline at end of file +