From: Michael M Slusarz Date: Sat, 30 Oct 2010 05:40:54 +0000 (-0600) Subject: Fix downloading of certain MIME types in IMP X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c4e53ab1e290304ef46fb3bacbd6928b2e659016;p=horde.git Fix downloading of certain MIME types in IMP --- diff --git a/imp/view.php b/imp/view.php index 0aa76c4c3..635978a5d 100644 --- a/imp/view.php +++ b/imp/view.php @@ -110,7 +110,7 @@ case 'download_render': if ($contents->canDisplay($vars->id, IMP_Contents::RENDER_RAW)) { $render = $contents->renderMIMEPart($vars->id, IMP_Contents::RENDER_RAW); reset($render); - $mime->setContents($render[key($render)]['data']); + $mime->setContents($render[key($render)]['data'], array('encoding' => 'binary')); } if (!$name = $mime->getName(true)) {