From 7b7d5d8611dc34ee5f2cf951fff6fccffd3ea1c7 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 14 Jul 2008 17:59:06 +0000 Subject: [PATCH] Image regex fixes from noel. see #6813 git-svn-id: http://svn.automattic.com/wordpress/trunk@8332 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/press-this.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php index bbca884852..7c88ec4acc 100644 --- a/wp-admin/press-this.php +++ b/wp-admin/press-this.php @@ -183,7 +183,7 @@ if($_REQUEST['ajax'] == 'photo_images') { $host = parse_url($uri); - $pattern = '/]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))(\2)([^>\/]*)\/*>/is'; + $pattern = '/]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif)[^<>\'\"]*)(\2)([^>\/]*)\/*>/is'; preg_match_all($pattern, $content, $matches); if ( empty($matches[1]) ) return '';