Changeset 2453
- Timestamp:
- 04/07/10 16:27:58 (14 years ago)
- Location:
- branches/2.1/expressoMail1_2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/expressoMail1_2/inc/class.imap_functions.inc.php
r2452 r2453 1158 1158 if ( count( $matches ) ) 1159 1159 return $body; 1160 1161 // All links should be moderated and they should only have the attribute 'target="blank"'.1162 $pattern = '/<a[^>]+href=(3D)?["\']([^>"\']+)["\'][^>]*>([^<]*)<\/a>/im';1163 $replacement = '<a href="$2" target="_blank">$3</a>';1164 $body = preg_replace( $pattern, $replacement, $body );1165 1166 1160 1167 1161 // Domains and IPs addresses found in the text and which is not a link yet should be replaced by one. -
branches/2.1/expressoMail1_2/js/draw_api.js
r2452 r2453 1885 1885 if ( links.item( i ).href.indexOf( 'mailto:' ) === 0 ) 1886 1886 mailto( links.item( i ) ); 1887 else 1888 { 1889 if ( links.item( i ).href.indexOf( 'javascript:' ) !== 0 ) 1890 links.item( i ).setAttribute( 'target', '_blank' ); 1891 } 1887 1892 ////////////////////////////////////////////////////////////////////////////////////////////////////// 1888 1893 //Make the thumbs of the message.
Note: See TracChangeset
for help on using the changeset viewer.