From: Michael M Slusarz Date: Tue, 22 Sep 2009 17:00:02 +0000 (-0600) Subject: Bug #8596: Horde 4 updates X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=584ebc51d597a26d4e3d84c9bce7d1a9f0a3d0f2;p=horde.git Bug #8596: Horde 4 updates --- diff --git a/framework/Mime/lib/Horde/Mime/Viewer/Zip.php b/framework/Mime/lib/Horde/Mime/Viewer/Zip.php index f21e3fb6c..8064878f3 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/Zip.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/Zip.php @@ -72,7 +72,7 @@ class Horde_Mime_Viewer_Zip extends Horde_Mime_Viewer_Driver $contents = $this->_mimepart->getContents(); $zip = Horde_Compress::factory('zip'); - $zipInfo = $zip->decompress($contents, array('action' => HORDE_COMPRESS_ZIP_LIST)); + $zipInfo = $zip->decompress($contents, array('action' => Horde_Compress_Zip::ZIP_LIST)); $fileCount = count($zipInfo); @@ -121,7 +121,11 @@ class Horde_Mime_Viewer_Zip extends Horde_Mime_Viewer_Driver $val['crc'] = Horde_String::pad($val['crc'], 10, ' ', STR_PAD_LEFT); $val['ratio'] = Horde_String::pad(sprintf("%1.1f%%", $ratio), 10, ' ', STR_PAD_LEFT); - $val = array_map(array('Text', 'htmlAllSpaces'), $val); + reset($val); + while (list($k, $v) = each($val)) { + $val[$k] = Horde_Text_Filter::filter($v, 'space2html', array('charset' => Horde_Nls::getCharset(), 'encode' => true, 'encode_all' => true)); + } + if (!is_null($this->_callback)) { $val = call_user_func($this->_callback, $key, $val); }