Changeset 2444 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 04/07/10 15:04:43 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r2427 r2444 1200 1200 if ( count( $matches ) ) 1201 1201 return $body; 1202 1203 // All links should be moderated and they should only have the attribute 'target="blank"'.1204 $pattern = '/<a[^>]+href=(3D)?["\']([^>"\']+)["\'][^>]*>([^<]*)<\/a>/im';1205 $replacement = '<a href="$2" target="_blank">$3</a>';1206 $body = preg_replace( $pattern, $replacement, $body );1207 1208 //file_put_contents( '/tmp/mail', $body );1209 1202 1210 1203 // Domains and IPs addresses found in the text and which is not a link yet should be replaced by one.
Note: See TracChangeset
for help on using the changeset viewer.