[Svn] r2367 - in trunk/roundcubemail: . program/lib

trac at roundcube.net trac at roundcube.net
Fri Mar 27 16:22:57 CET 2009


Author: alec
Date: 2009-03-27 10:22:43 -0500 (Fri, 27 Mar 2009)
New Revision: 2367

Modified:
   trunk/roundcubemail/CHANGELOG
   trunk/roundcubemail/program/lib/tnef_decoder.inc
Log:
- Fix TNEF implementation bug (#1485773)


Modified: trunk/roundcubemail/CHANGELOG
===================================================================
--- trunk/roundcubemail/CHANGELOG	2009-03-27 11:50:28 UTC (rev 2366)
+++ trunk/roundcubemail/CHANGELOG	2009-03-27 15:22:43 UTC (rev 2367)
@@ -1,6 +1,7 @@
 CHANGELOG RoundCube Webmail
 ===========================
 
+- Fix TNEF implementation bug (#1485773)
 - Fix incorrect row id parsing for LDAP contacts list (#1485784) 
 - Fix 'mode' parameter in sqlite DSN (#1485772)
 

Modified: trunk/roundcubemail/program/lib/tnef_decoder.inc
===================================================================
--- trunk/roundcubemail/program/lib/tnef_decoder.inc	2009-03-27 11:50:28 UTC (rev 2366)
+++ trunk/roundcubemail/program/lib/tnef_decoder.inc	2009-03-27 15:22:43 UTC (rev 2367)
@@ -102,7 +102,7 @@
 
 function tnef_decode_attribute($attribute, &$buf)
 {
-   global $debug, $download;
+   global $debug;
 
    $length = tnef_geti32($buf);
    $value = tnef_getx($length, $buf); //data
@@ -116,9 +116,9 @@
    switch($attribute)
    {
       case TNEF_BODYTEXT:
-         if (!$download)
+         if ($debug)
          {
-            printf("<b>Embedded message:</b><pre>%s</pre>",$value);
+            printf("<b>Embedded message:</b><pre>%s</pre>", $value);
          }
          break;
 
@@ -195,7 +195,7 @@
 
          case TNEF_MAPI_ATTACH_DATA:
             tnef_getx(16, $value); // skip the next 16 bytes (unknown data)
-            array_shift($attachment_data); // eliminate the current (bogus) attachment
+	    array_shift($attachment_data); // eliminate the current (bogus) attachment
             do_tnef_decode($value, $attachment_data); // recursively process the attached message
             break;
 
@@ -349,4 +349,4 @@
 
 }
 
-?>
\ No newline at end of file
+?>

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list