Show
Ignore:
Timestamp:
08/16/06 11:40:58 (2 years ago)
Author:
mbonetti
Message:

Regexp fix for Technorati urls being garbled.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/plugins/urlfilter.php

    r1513 r1540  
    3131/// Author: Marco Bonetti 
    3232/// Description: This plugin will try to make ugly URL links look better 
    33 /// Version: 1.7 
     33/// Version: 1.8 
    3434 
    3535/** 
     
    4040    $match = '#<a[^>]+?href="(.*?)">\\1</a>#im'; 
    4141    // matches non-linkified URLs 
    42     $match2 = '#[^>"\'](http[^\s$]+)[\s$]?#im'; 
     42    $match2 = '#[^>"\'/=\?](http[^\s$]+)[\s$]?#im'; 
    4343    $ret= preg_replace_callback($match, '__filter_callback', $in); 
    4444    $ret2= preg_replace_callback($match2,'__filter_callback', $ret);