From dadb05b0afc9a76d4f29a8d35bdf268aa20926df Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 27 Mar 2009 15:22:43 +0000 Subject: - Fix TNEF implementation bug (#1485773) --- program/lib/tnef_decoder.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'program') 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("Embedded message:
%s
",$value); + printf("Embedded message:
%s
", $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 +?> -- cgit v1.2.3