Changeset 3912


Ignore:
Timestamp:
03/25/11 11:34:47 (13 years ago)
Author:
brunocosta
Message:

Ticket #1696 - retira os caracteres "\0" do corpo de mensagens text/plain.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php

    r3911 r3912  
    946946                                                $content = str_replace( array( ' #$<$# ', ' #$>$# ' ), array( '<', '>' ), $content );  
    947947                                                $content = '<pre>' . $content . '</pre>';  
    948  
    949                                                 $return[ 'body' ] = $content;  
     948                                                $content = str_replace("\x00", '', $content); 
     949                                                $return[ 'body' ] = $content; 
    950950 
    951951                                                return $return;  
     
    12981298                // Layout problem: Change html elements 
    12991299                // with absolute position to relate position, CASE INSENSITIVE. 
    1300                 $body = @mb_eregi_replace("POSITION: ABSOLUTE;","",$body); 
     1300                $body = str_replace("\x00", '', $body); 
     1301                $body = @mb_eregi_replace("POSITION: ABSOLUTE;","",$body); 
    13011302 
    13021303                $tag_list = Array('head','blink','object','frame', 
     
    13281329                $body = mb_ereg_replace('&lt;!\[endif\]--&gt;', '<![endif]-->', $body); 
    13291330                $body = str_replace("\x00", '', $body); 
    1330                                           
     1331                 
    13311332                return  "<span>".$body;  
    13321333        } 
Note: See TracChangeset for help on using the changeset viewer.