Changeset 2415


Ignore:
Timestamp:
04/05/10 10:22:08 (14 years ago)
Author:
amuller
Message:

Ticket #1023 - Problema ao trocar links por target=_blank

File:
1 edited

Legend:

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

    r2321 r2415  
    11601160 
    11611161                // All links should be moderated and they should only have the attribute 'target="blank"'. 
    1162                 $pattern = '/<a[^>]+href="([^>"]+)"[^>]*>(.*)<\/a>/im'; 
    1163                 $replacement = '<a href="$1" target="_blank">$2</a>'; 
     1162                $pattern = '/<a[^>]+href=(3D)?["\']([^>"\']+)["\'][^>]*>([^<]*)<\/a>/im'; 
     1163                $replacement = '<a href="$2" target="_blank">$3</a>'; 
    11641164                $body = preg_replace( $pattern, $replacement, $body ); 
    11651165 
Note: See TracChangeset for help on using the changeset viewer.