Changeset 591


Ignore:
Timestamp:
01/13/09 13:58:10 (15 years ago)
Author:
eduardoalex
Message:

Ticket #395

File:
1 edited

Legend:

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

    r569 r591  
    180180                $return_get_body = $this->get_body_msg($msg_number, $msg_folder); 
    181181                 
    182                 $return['body']                 = $return_get_body['body']; 
     182                //Substituição de links por hiperlinks no texto. 
     183                $body = ereg_replace("^<>\'&^<>\"[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href='\\0'>\\0</a>",$return_get_body['body']); 
     184                $body = ereg_replace("^<>\'&^<>\"www[^<>[:space:]]+[[:alnum:]/]","<a href='http://\\0'>\\0</a>",$body); 
     185                 
     186                $return['body']                 = $body; 
    183187                $return['attachments']  = $return_get_body['attachments']; 
    184188                $return['thumbs']               = $return_get_body['thumbs']; 
Note: See TracChangeset for help on using the changeset viewer.