Deal with special characters in subject - make sure email filename is still valid

This commit is contained in:
nathangray 2016-12-21 08:50:32 -07:00
parent c88b82c4b0
commit c2e12a6583

View File

@ -250,7 +250,7 @@ class mail_integration {
fclose($tmpfile);
$size = filesize($attachment_file);
$mailcontent['attachments'][] = array(
'name' => trim($subject).'.eml',
'name' => Api\Vfs::encodePathComponent(trim($subject)).'.eml',
'mimeType' => 'message/rfc822',
'type' => 'message/rfc822',
'tmp_name' => $attachment_file,