Changeset 2415 for branches/2.1/expressoMail1_2
- Timestamp:
- 04/05/10 10:22:08 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/expressoMail1_2/inc/class.imap_functions.inc.php
r2321 r2415 1160 1160 1161 1161 // All links should be moderated and they should only have the attribute 'target="blank"'. 1162 $pattern = '/<a[^>]+href= "([^>"]+)"[^>]*>(.*)<\/a>/im';1163 $replacement = '<a href="$ 1" target="_blank">$2</a>';1162 $pattern = '/<a[^>]+href=(3D)?["\']([^>"\']+)["\'][^>]*>([^<]*)<\/a>/im'; 1163 $replacement = '<a href="$2" target="_blank">$3</a>'; 1164 1164 $body = preg_replace( $pattern, $replacement, $body ); 1165 1165
Note: See TracChangeset
for help on using the changeset viewer.