From 17ddc5045b6cc178f4ed329a5d219cb8ef415a72 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 16 Aug 2010 01:42:55 -0600 Subject: [PATCH] Fix display of zip attachment name --- imp/lib/Mime/Viewer/Zip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imp/lib/Mime/Viewer/Zip.php b/imp/lib/Mime/Viewer/Zip.php index c71d63e12..47c79292d 100644 --- a/imp/lib/Mime/Viewer/Zip.php +++ b/imp/lib/Mime/Viewer/Zip.php @@ -95,7 +95,7 @@ class IMP_Mime_Viewer_Zip extends Horde_Mime_Viewer_Zip if (!empty($val['size']) && (strstr($val['attr'], 'D') === false) && ((($val['method'] == 0x8) && Horde_Util::extensionExists('zlib')) || ($val['method'] == 0x0))) { - $mime_part = $this->_mimepart; + $mime_part = clone $this->_mimepart; $mime_part->setName(basename($name)); $val['name'] = str_replace($name, $this->getConfigParam('imp_contents')->linkView($mime_part, 'download_render', $name, array('jstext' => sprintf(_("View %s"), str_replace(' ', ' ', $name)), 'class' => 'fixed', 'params' => array('zip_attachment' => urlencode($key) + 1))), $val['name']); } -- 2.11.0