Changeset 2399


Ignore:
Timestamp:
04/01/10 10:20:15 (14 years ago)
Author:
amuller
Message:

Ticket #1023 - Arrumando reg exp de subst. link por target blank

File:
1 edited

Legend:

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

    r2388 r2399  
    11991199 
    12001200                // All links should be moderated and they should only have the attribute 'target="blank"'. 
    1201                 $pattern = '/<a[^>]+href="([^>"]+)"[^>]*>(.*)<\/a>/im'; 
    1202                 $replacement = '<a href="$1" target="_blank">$2</a>'; 
     1201                $pattern = '/<a[^>]+href=(3D)?["\']([^>"\']+)["\'][^>]*>([^<]*)<\/a>/im'; 
     1202                $replacement = '<a href="$2" target="_blank">$3</a>'; 
    12031203                $body = preg_replace( $pattern, $replacement, $body ); 
    12041204 
Note: See TracChangeset for help on using the changeset viewer.