Image regex fixes from noel. see #6813

git-svn-id: https://develop.svn.wordpress.org/trunk@8332 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-07-14 17:59:06 +00:00
parent ff4142320f
commit 90b7aa72c7
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ if($_REQUEST['ajax'] == 'photo_images') {
$host = parse_url($uri);
$pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))(\2)([^>\/]*)\/*>/is';
$pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif)[^<>\'\"]*)(\2)([^>\/]*)\/*>/is';
preg_match_all($pattern, $content, $matches);
if ( empty($matches[1]) ) return '';