FIX Filenames must not contains non ascii char or we will get non ascii
char into the SMTP header. Conflicts: htdocs/core/class/CMailFile.class.php
This commit is contained in:
parent
1543028cdb
commit
e14612f569
@ -124,6 +124,13 @@ class CMailFile
|
|||||||
{
|
{
|
||||||
global $conf, $dolibarr_main_data_root;
|
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->sendcontext = $sendcontext;
|
$this->sendcontext = $sendcontext;
|
||||||
|
|
||||||
if (empty($replyto)) $replyto=$from;
|
if (empty($replyto)) $replyto=$from;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user