Changeset 13 for trunk/expressoMail1_2/inc/class.imap_functions.inc.php
- Timestamp:
- 04/10/07 10:21:10 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r12 r13 588 588 */ 589 589 // 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); 592 591 $body = str_replace("\r\n", "\n", $body); 593 592 if ($encoding == 'quoted-printable') 594 593 { 594 595 595 for($i=0;$i<256;$i++) { 596 596 $c1=dechex($i); … … 611 611 $body = base64_decode($body); 612 612 } 613 else if ($encoding == '7bit')613 /*else if ($encoding == '7bit') 614 614 { 615 $body = quoted_printable_decode($body); 616 } 615 $body = quoted_printable_decode($body); 616 }*/ 617 617 // All other encodings are returned raw. 618 618 if (strtolower($charset) == "utf-8") … … 692 692 // It no has exception,then open the link in new window. 693 693 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); 695 696 $body = @eregi_replace("target=\"\"", "target='_blank'", $body); 696 697 $body = @eregi_replace("target=''", "target='_blank'", $body); … … 1501 1502 $str = ereg_replace('"', '"', $str); 1502 1503 $str = ereg_replace('\'', ''', $str); 1504 1503 1505 $str = ereg_replace('<', '<', $str); 1504 1506 $str = ereg_replace('>', '>', $str);
Note: See TracChangeset
for help on using the changeset viewer.