Changeset 2428 for branches/2.0
- Timestamp:
- 04/06/10 10:45:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/expressoMail1_2/inc/class.imap_functions.inc.php
r2310 r2428 1092 1092 1093 1093 // All links should be moderated and they should only have the attribute 'target="blank"'. 1094 $pattern = '/<a[^>]+href= "([^>"]+)"[^>]*>(.*)<\/a>/im';1095 $replacement = '<a href="$ 1" target="_blank">$2</a>';1094 $pattern = '/<a[^>]+href=(3D)?["\']([^>"\']+)["\'][^>]*>([^<]*)<\/a>/im'; 1095 $replacement = '<a href="$2" target="_blank">$3</a>'; 1096 1096 $body = preg_replace( $pattern, $replacement, $body ); 1097 1097
Note: See TracChangeset
for help on using the changeset viewer.