summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-04-26 13:26:39 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-04-26 13:26:39 +0000
commitab4b1656679d47d6808840c1f238d2524125d4ba (patch)
tree276431c41ed1f6fd8f7300c2f15b46209a8a6c30
parentc81cc6765694f89ad4f99350f30ba8523a007840 (diff)
- don't parse text/html attachment body on download
git-svn-id: https://svn.roundcube.net/trunk@3563 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/steps/mail/get.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/get.inc b/roundcubemail/program/steps/mail/get.inc
index a41925a65..fdf90135c 100644
--- a/roundcubemail/program/steps/mail/get.inc
+++ b/roundcubemail/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);