Changeset 4618 for contrib


Ignore:
Timestamp:
06/16/11 15:32:30 (13 years ago)
Author:
emersonfaria
Message:

Ticket #2017 - Corpos HTML que precisam ser apresentados agora sao truncados antes de serem tratados pelo Z-Push

File:
1 edited

Legend:

Unmodified
Added
Removed
  • contrib/z-push/backend/imap.php

    r4617 r4618  
    983983                        $this->getBodyRecursive($message, "html", $body); 
    984984 
     985                        if($trunc == true and isset($body) and strlen($body) > 209715) {  
     986                                $body = substr($body, 0, 209715); 
     987                                $body .= "<BR><BR><BR> A MENSAGEM FOI TRUNCADA NO CELULAR(MENSAGEM MUITO GRANDE)."; 
     988                    }  
     989                         
    985990                        // remove css-style tags 
    986991                        $body = preg_replace("/<style.*?<\/style>/is", "a", $body); 
Note: See TracChangeset for help on using the changeset viewer.