Skip to content
Snippets Groups Projects
Commit 5687293f authored by Prasad's avatar Prasad
Browse files

Fixes #1807: special case handled for default charset return of imap decode

parent e091d11a
No related branches found
No related tags found
No related merge requests found
......@@ -143,7 +143,8 @@ class Vtiger_MailRecord {
if ($iconv_function === NULL) $iconv_function = function_exists('iconv');
if($mb_function) {
if(!$from) $from = mb_detect_encoding($input);
// if source charset is not determined or not-encoded as per imap_mime_decode
if(!$from || $from == 'default') $from = mb_detect_encoding($input);
if(strtolower(trim($to)) == strtolower(trim($from))) {
return $input;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment