mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
making the charset param optional, with preset to utf-8 in decodeMailHandler
This commit is contained in:
parent
1fa08b5095
commit
dd5376c41f
@ -863,9 +863,9 @@ class translation
|
||||
* @param string $displayCharset the charset parameter specifies the character set to represent the result by (if iconv_mime_decode is to be used)
|
||||
* @return string
|
||||
*/
|
||||
function decodeMailHeader($_string, $displayCharset)
|
||||
function decodeMailHeader($_string, $displayCharset='utf-8')
|
||||
{
|
||||
//error_log(__FILE__.','.__METHOD__.':'."called");
|
||||
error_log(__FILE__.','.__METHOD__.':'."called with $_string and CHARSET $displayCharset");
|
||||
if(function_exists(imap_mime_header_decode)) {
|
||||
$newString = '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user