From ed1ffdea76200e86b57e4129b54bd447b248b314 Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 21 Dec 2016 08:50:32 -0700 Subject: [PATCH] Deal with special characters in subject - make sure email filename is still valid --- mail/inc/class.mail_integration.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,