WordPress.org

Make WordPress Core

Changeset 8332


Ignore:
Timestamp:
07/14/2008 05:59:06 PM (12 years ago)
Author:
ryan
Message:

Image regex fixes from noel. see #6813

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/press-this.php

    r8330 r8332  
    184184        $host = parse_url($uri);
    185185
    186         $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))(\2)([^>\/]*)\/*>/is';
     186        $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif)[^<>\'\"]*)(\2)([^>\/]*)\/*>/is';
    187187        preg_match_all($pattern, $content, $matches);
    188188
Note: See TracChangeset for help on using the changeset viewer.