- Timestamp:
- 02/23/10 08:02:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r2041 r2045 1176 1176 1177 1177 // 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'; 1179 1179 $replacement = '$1<a href="http$4://$5" target="_blank">$2</a>'; 1180 1180 $body = preg_replace( $pattern, $replacement, $body );
Note: See TracChangeset
for help on using the changeset viewer.