From 4922efa0e79f5a3d954a7425f076610734e8cba9 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Mon, 28 Dec 2015 17:38:46 -0500 Subject: [PATCH] Bug: 14199 Fix decoding of base64 encoded Kolab (.xml) objects Signed-off-by: Michael J Rubinsky --- framework/Kolab_Storage/lib/Horde/Kolab/Storage/Object.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Object.php b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Object.php index a39b5d9b544..bc20d866d6c 100644 --- a/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Object.php +++ b/framework/Kolab_Storage/lib/Horde/Kolab/Storage/Object.php @@ -375,7 +375,7 @@ public function load($backend_id, return; } $this->_mime_part_id = $result[0]; - $mime_part->setContents($this->getContent()); + $mime_part->setContents($this->getContent(), array('encoding' => '8bit')); $result = $data->load($mime_part->getContents(array('stream' => true)), $this); if ($result instanceof Exception) { $this->addParseError(self::ERROR_INVALID_KOLAB_PART, $result->getMessage());