Ignore:
Timestamp:
04/10/07 10:21:10 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

File:
1 edited

Legend:

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

    r12 r13  
    588588                */ 
    589589                // HTML Filter 
    590                 //$body = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=# onclick=\"javascript:new_message('new_by_message', '\\2@\\3')\">\\2@\\3</a>", $body);       
    591          
     590                //$body = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=# onclick=\"javascript:new_message('new_by_message', '\\2@\\3')\">\\2@\\3</a>", $body); 
    592591        $body = str_replace("\r\n", "\n", $body); 
    593592                if ($encoding == 'quoted-printable') 
    594593            { 
     594                         
    595595                        for($i=0;$i<256;$i++) { 
    596596                                $c1=dechex($i); 
     
    611611                $body = base64_decode($body); 
    612612        } 
    613         else if ($encoding == '7bit')  
     613        /*else if ($encoding == '7bit')  
    614614        { 
    615                 $body = quoted_printable_decode($body); 
    616         } 
     615                $body = quoted_printable_decode($body);                                          
     616        }*/ 
    617617                // All other encodings are returned raw. 
    618618                if (strtolower($charset) == "utf-8") 
     
    692692                // It no has exception,then open the link in new window. 
    693693                if(!count($matches)){ 
    694                         $body = @eregi_replace("<a href=", "<a target='_blank' href=", $body); 
     694                        $body = @eregi_replace("<a (.*) href=", "<a \\1 target='_blank' href=", $body); 
     695                        $body = @str_replace("<a href=", "<a target='_blank' href=", $body); 
    695696                        $body = @eregi_replace("target=\"\"", "target='_blank'", $body); 
    696697                        $body = @eregi_replace("target=''", "target='_blank'", $body); 
     
    15011502                $str = ereg_replace('"', '&quot;', $str); 
    15021503                $str = ereg_replace('\'', '&#039;', $str); 
     1504                 
    15031505                $str = ereg_replace('<', '&lt;', $str); 
    15041506                $str = ereg_replace('>', '&gt;', $str); 
Note: See TracChangeset for help on using the changeset viewer.