|
|
|
@ -95,9 +95,7 @@ else if ($_GET['_thumb']) {
|
|
|
|
|
else if (strlen($pid = get_input_value('_part', RCUBE_INPUT_GET))) {
|
|
|
|
|
|
|
|
|
|
if ($part = $MESSAGE->mime_parts[$pid]) {
|
|
|
|
|
$ctype_primary = strtolower($part->ctype_primary);
|
|
|
|
|
$ctype_secondary = strtolower($part->ctype_secondary);
|
|
|
|
|
$mimetype = sprintf('%s/%s', $ctype_primary, $ctype_secondary);
|
|
|
|
|
$mimetype = rcmail_fix_mimetype($part->mimetype);
|
|
|
|
|
|
|
|
|
|
// allow post-processing of the message body
|
|
|
|
|
$plugin = $RCMAIL->plugins->exec_hook('message_part_get',
|
|
|
|
@ -217,7 +215,6 @@ else if (strlen($pid = get_input_value('_part', RCUBE_INPUT_GET))) {
|
|
|
|
|
header("Content-Type: text/$ctype_secondary; charset=" . ($part->charset ? $part->charset : RCMAIL_CHARSET));
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$mimetype = rcmail_fix_mimetype($mimetype);
|
|
|
|
|
header("Content-Type: $mimetype");
|
|
|
|
|
header("Content-Transfer-Encoding: binary");
|
|
|
|
|
}
|
|
|
|
|