summaryrefslogtreecommitdiff
path: root/program/steps/mail/get.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-04-26 13:26:39 +0000
committeralecpl <alec@alec.pl>2010-04-26 13:26:39 +0000
commit1097a3cd8a3ae188f275763ae8d5a9c4d263db7a (patch)
tree0fde7f506fa88893b796e66dbc8be223375835e9 /program/steps/mail/get.inc
parent495c0e512ceb8906dd72b2887ecd11f3e1282b7c (diff)
- don't parse text/html attachment body on download
Diffstat (limited to 'program/steps/mail/get.inc')
-rw-r--r--program/steps/mail/get.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/get.inc b/program/steps/mail/get.inc
index a41925a65..fdf90135c 100644
--- a/program/steps/mail/get.inc
+++ b/program/steps/mail/get.inc
@@ -82,7 +82,7 @@ else if ($pid = get_input_value('_part', RCUBE_INPUT_GET)) {
}
// deliver part content
- if ($ctype_primary == 'text' && $ctype_secondary == 'html') {
+ if ($ctype_primary == 'text' && $ctype_secondary == 'html' && empty($_GET['_download'])) {
// get part body if not available
if (!$part->body)
$part->body = $MESSAGE->get_part_content($part->mime_id);