Changeset 2045


Ignore:
Timestamp:
02/23/10 08:02:33 (14 years ago)
Author:
amuller
Message:

Ticket #859 - Corrigido parte do problema referente à função replace_links.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r2041 r2045  
    11761176 
    11771177                // Url found in the text and which is not a link yet should be replaced by one. 
    1178                 $pattern = '/(^| |[\w"]>|[ \(\[])((http(s)?:\/\/)?([\w\d_\-@]{2,}(\.[\w\d~?\/_=&#;\-:@$]+)+))/im'; 
     1178                $pattern = '/(^| |[\w"]>|[ \(\[])((http(s)?:\/\/)?([\w\d_\-@]{2,}(\.[\w\d~?\/_=&#;\-:@$]+){2,}))/im'; 
    11791179                $replacement = '$1<a href="http$4://$5" target="_blank">$2</a>'; 
    11801180                $body = preg_replace( $pattern, $replacement, $body ); 
Note: See TracChangeset for help on using the changeset viewer.