FIX Filenames must not contains non ascii char or we will get non ascii

char into the SMTP header.
This commit is contained in:
Laurent Destailleur 2020-02-06 13:01:09 +01:00
parent 857c22cb29
commit 13442ef0df

View File

@ -137,6 +137,13 @@ class CMailFile
{
global $conf, $dolibarr_main_data_root;
// Clean values of $mimefilename_list
if (is_array($mimefilename_list)) {
foreach($mimefilename_list as $key => $val) {
$mimefilename_list[$key] = dol_string_unaccent($mimefilename_list[$key]);
}
}
$this->subject = $subject;
$this->addr_to = $to;
$this->addr_from = $from;