logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

CVS: squirrelmail/src view_text.php,1.32,1.33: msg#00007

Subject: CVS: squirrelmail/src view_text.php,1.32,1.33
Update of /cvsroot/squirrelmail/squirrelmail/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20482

Modified Files:
        view_text.php 
Log Message:
if html attachment has character set information, it can be converted.
missing part of 1195232 patch


Index: view_text.php
===================================================================
RCS file: /cvsroot/squirrelmail/squirrelmail/src/view_text.php,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -w -r1.32 -r1.33
--- view_text.php       18 Sep 2005 10:25:53 -0000      1.32
+++ view_text.php       9 Oct 2005 16:21:58 -0000       1.33
@@ -71,6 +71,9 @@
 
 if ($type1 == 'html' || (isset($override_type1) &&  $override_type1 == 
'html')) {
     $body = MagicHTML( $body, $passed_id, $message, $mailbox);
+    // html attachment with character set information
+    if (! empty($charset))
+        $body = charset_decode($charset,$body,false,true);
 } else {
     translateText($body, $wrap_at, $charset);
 }



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl


<Prev in Thread] Current Thread [Next in Thread>