From 41c7bca7d0f0665c99e0721569cc5ce1484ca3aa Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 20 May 2008 22:26:20 +0000 Subject: [PATCH] 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 --- wp-admin/press-this.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index d42952c36a..8009e54515 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -104,10 +104,10 @@ function get_images_from_uri($uri) { if ( false !== strpos($src, '&') ) continue; - $host = parse_url($_GET['u'], PHP_URL_HOST); + $host = parse_url($_GET['u']); if (strpos($src, 'http://') === false) { - $src = 'http://'.str_replace('//','/', $host.'/'.$src); + $src = 'http://'.str_replace('//','/', $host['host'].'/'.$src); } $sources[] = $src;