summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-03-27 15:22:43 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-03-27 15:22:43 +0000
commitb0794aa94808eb9bc7110f3212439ca531031e2b (patch)
treeef24bab79a17adbd66192578f600a5ce55a22987 /roundcubemail/program
parent1637822a871fc6feaa3173e56db8d5f857576de3 (diff)
- Fix TNEF implementation bug (#1485773)
git-svn-id: https://svn.roundcube.net/trunk@2367 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/lib/tnef_decoder.inc10
1 files changed, 5 insertions, 5 deletions
diff --git a/roundcubemail/program/lib/tnef_decoder.inc b/roundcubemail/program/lib/tnef_decoder.inc
index f9b7c3684..8e3682a9b 100644
--- a/roundcubemail/program/lib/tnef_decoder.inc
+++ b/roundcubemail/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
+?>