Changeset 2444


Ignore:
Timestamp:
04/07/10 15:04:43 (9 years ago)
Author:
rodsouza
Message:

Ticket #1028 - Removida a expressão que incluia target=_blank no link. Tranferido para o javascript.

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r2427 r2444  
    12001200                if ( count( $matches ) ) 
    12011201                        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 ); 
    12091202 
    12101203                // Domains and IPs addresses found in the text and which is not a link yet should be replaced by one. 
  • trunk/expressoMail1_2/js/draw_api.js

    r2425 r2444  
    19331933                if ( links.item( i ).href.indexOf( 'mailto:' ) === 0 ) 
    19341934                        mailto( links.item( i ) ); 
     1935                else 
     1936                { 
     1937                        if ( links.item( i ).href.indexOf( 'javascript:' ) !== 0 ) 
     1938                                links.item( i ).setAttribute( 'target', '_blank' ); 
     1939                } 
    19351940        //////////////////////////////////////////////////////////////////////////////////////////////////////   
    19361941        //Make the thumbs of the message. 
Note: See TracChangeset for help on using the changeset viewer.