Changeset 8332

Show
Ignore:
Timestamp:
07/14/08 17:59:06 (2 months ago)
Author:
ryan
Message:

Image regex fixes from noel. see #6813

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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