mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-23 19:02:46 +01:00
Improve decoding strings in Webklex/laravel-imap library
This commit is contained in:
parent
9312036f69
commit
47ebc2f694
@ -876,7 +876,7 @@ class Message
|
||||
// }
|
||||
|
||||
// Try iconv.
|
||||
if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') {
|
||||
if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7' && $from != 'iso-2022-jp-ms') {
|
||||
try {
|
||||
$result = iconv($from, $to.'//IGNORE', $str);
|
||||
} catch (\Exception $e) {
|
||||
|
@ -730,7 +730,7 @@ class Message {
|
||||
}
|
||||
|
||||
// Try iconv.
|
||||
if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7') {
|
||||
if (function_exists('iconv') && $from != 'UTF-7' && $to != 'UTF-7' && $from != 'iso-2022-jp-ms') {
|
||||
try {
|
||||
$result = iconv($from, $to.'//IGNORE', $str);
|
||||
} catch (\Exception $e) {
|
||||
|
Loading…
Reference in New Issue
Block a user