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:
parent
ff4142320f
commit
90b7aa72c7
@ -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 '';
|
||||
|
Loading…
Reference in New Issue
Block a user