mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 03:06:02 +03:00
fix message decoding
This commit is contained in:
parent
6124cdef74
commit
378bfbdbe0
@ -541,15 +541,18 @@ class Message
|
||||
$encoding = strtolower($encoding);
|
||||
}
|
||||
|
||||
switch (true) {
|
||||
case $encoding === 'quoted-printable':
|
||||
case $encoding === 4:
|
||||
return quoted_printable_decode($data);
|
||||
|
||||
case $encoding === 'base64':
|
||||
case $encoding === 3:
|
||||
switch ($encoding) {
|
||||
case 'base64':
|
||||
case 3:
|
||||
case 5:
|
||||
case 6:
|
||||
case 7:
|
||||
return base64_decode($data);
|
||||
|
||||
case 'quoted-printable':
|
||||
case 4:
|
||||
return quoted_printable_decode($data);
|
||||
|
||||
default:
|
||||
return $data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user