From 90b7aa72c7c107ad15bdcec2f962bea019f5050b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Mon, 14 Jul 2008 17:59:06 +0000 Subject: [PATCH] Image regex fixes from noel. see #6813 git-svn-id: https://develop.svn.wordpress.org/trunk@8332 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 '';