Changeset 2454


Ignore:
Timestamp:
04/07/10 16:29:40 (14 years ago)
Author:
rodsouza
Message:

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

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  
    10901090                if(count($matches)) 
    10911091                        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  
    10981092 
    10991093                // 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  
    17821782                if ( links.item( i ).href.indexOf( 'mailto:' ) === 0 ) 
    17831783                        mailto( links.item( i ) ); 
     1784                else 
     1785                { 
     1786                        if ( links.item( i ).href.indexOf( 'javascript:' ) !== 0 ) 
     1787                                links.item( i ).setAttribute( 'target', '_blank' ); 
     1788                } 
    17841789        //////////////////////////////////////////////////////////////////////////////////////////////////////   
    17851790        //Make the thumbs of the message. 
Note: See TracChangeset for help on using the changeset viewer.