Changeset 2428 for branches/2.0


Ignore:
Timestamp:
04/06/10 10:45:47 (14 years ago)
Author:
niltonneto
Message:

Ticket #1023 - Corrigido problema ao trocar links por target=_blank.

File:
1 edited

Legend:

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

    r2310 r2428  
    10921092 
    10931093                // All links should be moderated and they should only have the attribute 'target="blank"'. 
    1094                 $pattern = '/<a[^>]+href="([^>"]+)"[^>]*>(.*)<\/a>/im'; 
    1095                 $replacement = '<a href="$1" target="_blank">$2</a>'; 
     1094                $pattern = '/<a[^>]+href=(3D)?["\']([^>"\']+)["\'][^>]*>([^<]*)<\/a>/im'; 
     1095                $replacement = '<a href="$2" target="_blank">$3</a>'; 
    10961096                $body = preg_replace( $pattern, $replacement, $body ); 
    10971097 
Note: See TracChangeset for help on using the changeset viewer.