fix message decoding

This commit is contained in:
Florent Viel 2014-12-16 14:59:55 +01:00
parent 6124cdef74
commit 378bfbdbe0

View File

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