Ignore:
Timestamp:
04/01/10 16:51:20 (14 years ago)
Author:
rodsouza
Message:

Ticket #1025 - Removida a da instrução 'new_message_to' do método 'replace_links'

File:
1 edited

Legend:

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

    r2399 r2406  
    12671267                // E-mail address in the text should create a new e-mail on ExpressoMail 
    12681268                $pattern = '/( |<|&lt;|>)([A-Za-z0-9\.~?\/_=#\-]*@[A-Za-z0-9\.~?\/_=#\-]*)( |>|&gt;|<)/im'; 
    1269                 $replacement = '$1<a href="javascript:new_message_to(\'$2\')">$2</a>$3'; 
    1270                 $body = preg_replace( $pattern, $replacement, $body ); 
    1271  
    1272                 // If there is an link with a "mailto:" in href attribute, it will changed to create a new e-mail on ExpressoMail. 
    1273                 $pattern = '/<a[^>]+href=["\']mailto:([^"]+)["\'][^>]*>([^<]+)<\/a>/im'; 
    1274                 $replacement = '<a href="javascript:new_message_to(\'$1\')">$2</a>'; 
     1269                $replacement = '$1<a href="mailto:$2">$2</a>$3'; 
    12751270                $body = preg_replace( $pattern, $replacement, $body ); 
    12761271 
Note: See TracChangeset for help on using the changeset viewer.