Changeset 2454
- Timestamp:
- 04/07/10 16:29:40 (14 years ago)
- Location:
- branches/2.0/expressoMail1_2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/expressoMail1_2/inc/class.imap_functions.inc.php
r2451 r2454 1090 1090 if(count($matches)) 1091 1091 return $body; 1092 1093 // All links should be moderated and they should only have the attribute 'target="blank"'.1094 $pattern = '/<a[^>]+href=(3D)?["\']([^>"\']+)["\'][^>]*>([^<]*)<\/a>/im';1095 $replacement = '<a href="$2" target="_blank">$3</a>';1096 $body = preg_replace( $pattern, $replacement, $body );1097 1098 1092 1099 1093 // Domains and IPs addresses found in the text and which is not a link yet should be replaced by one. -
branches/2.0/expressoMail1_2/js/draw_api.js
r2451 r2454 1782 1782 if ( links.item( i ).href.indexOf( 'mailto:' ) === 0 ) 1783 1783 mailto( links.item( i ) ); 1784 else 1785 { 1786 if ( links.item( i ).href.indexOf( 'javascript:' ) !== 0 ) 1787 links.item( i ).setAttribute( 'target', '_blank' ); 1788 } 1784 1789 ////////////////////////////////////////////////////////////////////////////////////////////////////// 1785 1790 //Make the thumbs of the message.
Note: See TracChangeset
for help on using the changeset viewer.