fix typo introduced with rev47607, accidently returning the decoded attachment instead of preparing data for the array to be returned

This commit is contained in:
Klaus Leithoff 2014-08-19 08:19:50 +00:00
parent aa6f344c7f
commit 411b192e16

View File

@ -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