projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fddf3de
)
Fix downloading of certain MIME types in IMP
author
Michael M Slusarz
<slusarz@curecanti.org>
Sat, 30 Oct 2010 05:40:54 +0000
(23:40 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Tue, 2 Nov 2010 04:56:57 +0000
(22:56 -0600)
imp/view.php
patch
|
blob
|
history
diff --git
a/imp/view.php
b/imp/view.php
index
0aa76c4
..
635978a
100644
(file)
--- 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)) {