Ignore:
Timestamp:
03/16/12 17:33:05 (12 years ago)
Author:
cristiano
Message:

Ticket #2469 - Trocada regex que limpa o css e problemas com envio de email em text/plain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/services/ImapServiceAdapter.php

    r5711 r5745  
    398398                                $body = $data['body']; 
    399399                                $body = str_replace("%nbsp;"," ",$body); 
    400                                 $body = preg_replace("/\n/"," ",$body); 
    401                                 $body = preg_replace("/\r/","" ,$body); 
     400                                //$body = preg_replace("/\n/"," ",$body); 
     401                                //$body = preg_replace("/\r/","" ,$body); 
    402402                                $body = html_entity_decode ( $body, ENT_QUOTES , 'ISO-8859-1' );                                         
    403403 
     
    420420                                        $mailService->addHeaderField('Disposition-Notification-To', Config::me('mail')); 
    421421 
    422                                 $isHTML = ( ( array_key_exists( 'type', $data ) && in_array( strtolower( $data[ 'type' ] ), array( 'html', 'plain' ) ) ) ? strtolower( $data[ 'type' ] ) != 'plain' : true ); 
    423  
     422                                $isHTML = ( isset($data['type']) && $data['type'] == 'html' )?  true : false; 
     423                                                                   
    424424                                if (!$body) $body = ' '; 
    425425                                 
Note: See TracChangeset for help on using the changeset viewer.