Image regex fixes from noel. see #6813

git-svn-id: http://svn.automattic.com/wordpress/trunk@8332 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-07-14 17:59:06 +00:00
parent 4f5aa3fa57
commit 7b7d5d8611
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 '';