Changeset 1481
- Timestamp:
- 10/01/09 17:44:01 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r1479 r1481 1041 1041 if(count($matches)) 1042 1042 return $body; 1043 1044 $pattern = '/(?<=[\s\>\n\r;])((http(s?):\/\/((?:[\w]\.?)+(?::[\d]+)?[\/.\-~&=?%;@#,+\w:]*))|((?:www?\.)(?:\w\.?)*(?::\d+)?[\/\w.\-~&=?%;@+]*))/i'; 1043 1044 $pattern = '/(?<=[\s\><\n\r;])((http(s?):\/\/((?:[\w]\.?)+(?::[\d]+)?[\/.\-~&=?%;@#,+\w:]*))|((?:www?\.)(?:\w\.?)*(?::\d+)?[\/\w.\-~&=?%;@+]*))/i'; 1045 1045 1046 $replacement = '<a href="http$3://$4$5" target="_blank">$1</a>'; 1046 1047 return preg_replace($pattern, $replacement, $body);
Note: See TracChangeset
for help on using the changeset viewer.