Ticket #6813: press-this_7-14.patch

File press-this_7-14.patch, 0.5 kB (added by noel, 5 months ago)

Fixes issue with Flickr and some other url variations

  • wp-admin/press-this.php

    old new  
    183183 
    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 
    189189                if ( empty($matches[1]) ) return '';