From 411b192e16cae144ca4160885d49e6af5aabff90 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 19 Aug 2014 08:19:50 +0000 Subject: [PATCH] fix typo introduced with rev47607, accidently returning the decoded attachment instead of preparing data for the array to be returned --- felamimail/inc/class.bofelamimail.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/felamimail/inc/class.bofelamimail.inc.php b/felamimail/inc/class.bofelamimail.inc.php index 5e24bc963e..17e6ed5214 100644 --- a/felamimail/inc/class.bofelamimail.inc.php +++ b/felamimail/inc/class.bofelamimail.inc.php @@ -1221,7 +1221,7 @@ switch ($structure->encoding) { case 'BASE64': // use imap_base64 to decode, not any longer, as it is strict, and fails if it encounters invalid chars - return base64_decode($attachment); + $attachment = base64_decode($attachment); break; case 'QUOTED-PRINTABLE': // use imap_qprint to decode @@ -1330,7 +1330,7 @@ switch ($structure->encoding) { case 'BASE64': // use imap_base64 to decode, not any longer, as it is strict, and fails if it encounters invalid chars - return base64_decode($attachment); + $attachment = base64_decode($attachment); break; case 'QUOTED-PRINTABLE': // use imap_qprint to decode