1
0
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:
FreeScout 2023-06-26 11:33:57 -07:00
parent 9312036f69
commit 47ebc2f694
2 changed files with 2 additions and 2 deletions

View File

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

View File

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