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:
parent
4f5aa3fa57
commit
7b7d5d8611
@ -183,7 +183,7 @@ if($_REQUEST['ajax'] == 'photo_images') {
|
|||||||
|
|
||||||
$host = parse_url($uri);
|
$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);
|
preg_match_all($pattern, $content, $matches);
|
||||||
|
|
||||||
if ( empty($matches[1]) ) return '';
|
if ( empty($matches[1]) ) return '';
|
||||||
|
Loading…
Reference in New Issue
Block a user