Changeset 5259


Ignore:
Timestamp:
12/15/11 13:34:16 (12 years ago)
Author:
clairson
Message:

Ticket #1700 - Problema de codificacao de mensagens, na visualizacao rapida do modulo home

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/hook_home.inc.php

    r3385 r5259  
    6565                                else 
    6666                                        $date = $date_msg; 
    67                                          
    68                                 $subject = $expressoMail->decode_string($header->fetchsubject);                          
    69                                 $text = "<div style='overflow:hidden;white-space:nowrap'>".$date." .: ".$subject."</div>"; 
    70                                 if(strlen($text) > 105) 
    71                                         $text = substr($text,0,105).' ...'; 
    72                          
     67 
     68                                $subject = $expressoMail->decode_string($header->fetchsubject); 
     69 
     70                                $text=$date." .: ".$subject; 
     71                                if(strlen($text) > 55){ 
     72                                    $text = html_entity_decode($text); 
     73                                    $text = substr($text,0,55).' ...'; 
     74                                    $text = htmlentities($text);                                       
     75                                } 
     76                                $text = "<div style='overflow:hidden;white-space:nowrap'>".$text."</div>"; 
     77                                 
    7378                                $link_msg = $GLOBALS['phpgw']->link( 
    7479                                                '/'.$current_app.'/index.php', 
Note: See TracChangeset for help on using the changeset viewer.