mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
* API: decodeMailHeader handle nested encoding for imap_mime_header_decode
This commit is contained in:
parent
ef9ea04c9d
commit
2888e7dfdc
@ -1027,6 +1027,11 @@ class translation
|
||||
if ($element->charset != 'x-unknown')
|
||||
{
|
||||
if( strtoupper($element->charset) != 'UTF-8') $element->text = preg_replace($sar,$rar,$element->text);
|
||||
if(preg_match('/\?=.+=\?/', $element->text))
|
||||
{
|
||||
$element->text = self::decodeMailHeader($element->text, $element->charset);
|
||||
$element->charset = $displayCharset;
|
||||
}
|
||||
$newString .= self::convert($element->text,$element->charset);
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user