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 c60d03d7d4
commit ed1ffdea76

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,