Revert "fix message decoding"

This reverts commit 378bfbdbe0.
This commit is contained in:
Florent Viel 2014-12-16 15:34:55 +01:00
parent 378bfbdbe0
commit bcdc85d5d8

View File

@ -541,18 +541,15 @@ class Message
$encoding = strtolower($encoding); $encoding = strtolower($encoding);
} }
switch ($encoding) { switch (true) {
case 'base64': case $encoding === 'quoted-printable':
case 3: case $encoding === 4:
case 5:
case 6:
case 7:
return base64_decode($data);
case 'quoted-printable':
case 4:
return quoted_printable_decode($data); return quoted_printable_decode($data);
case $encoding === 'base64':
case $encoding === 3:
return base64_decode($data);
default: default:
return $data; return $data;
} }