diff options
author | thomascube <thomas@roundcube.net> | 2009-05-15 10:22:29 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-05-15 10:22:29 +0000 |
commit | 51ede06434097ef8d0697ee204fa998d6445d194 (patch) | |
tree | 76d6362bca66010776af8e8fbb971ba848cc3215 /program/lib/tnef_decoder.inc | |
parent | 9bee4437b889f4e36e37116ebf1fc24765eecad6 (diff) |
Apply changes from r2348 to r2400 for 0.2.2 release
Diffstat (limited to 'program/lib/tnef_decoder.inc')
-rw-r--r-- | program/lib/tnef_decoder.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/program/lib/tnef_decoder.inc b/program/lib/tnef_decoder.inc index f9b7c3684..8e3682a9b 100644 --- a/program/lib/tnef_decoder.inc +++ b/program/lib/tnef_decoder.inc @@ -102,7 +102,7 @@ function tnef_geti32(&$buf) 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 @@ function tnef_decode_attribute($attribute, &$buf) 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 @@ function extract_mapi_attrs($buf, &$attachment_data) 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 @@ function tnef_decode($buf) } -?>
\ No newline at end of file +?> |