diff --git a/mail/inc/class.mail_integration.inc.php b/mail/inc/class.mail_integration.inc.php index 1a5b65b60a..6576a0dc18 100644 --- a/mail/inc/class.mail_integration.inc.php +++ b/mail/inc/class.mail_integration.inc.php @@ -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,