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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/expressoMail1_2/inc/class.imap_functions.inc.php

    r2452 r2453  
    11581158                if ( count( $matches ) ) 
    11591159                        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  
    11661160 
    11671161                // 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.