forked from extern/egroupware
Deal with special characters in subject - make sure email filename is still valid
This commit is contained in:
parent
c60d03d7d4
commit
ed1ffdea76
@ -250,7 +250,7 @@ class mail_integration {
|
|||||||
fclose($tmpfile);
|
fclose($tmpfile);
|
||||||
$size = filesize($attachment_file);
|
$size = filesize($attachment_file);
|
||||||
$mailcontent['attachments'][] = array(
|
$mailcontent['attachments'][] = array(
|
||||||
'name' => trim($subject).'.eml',
|
'name' => Api\Vfs::encodePathComponent(trim($subject)).'.eml',
|
||||||
'mimeType' => 'message/rfc822',
|
'mimeType' => 'message/rfc822',
|
||||||
'type' => 'message/rfc822',
|
'type' => 'message/rfc822',
|
||||||
'tmp_name' => $attachment_file,
|
'tmp_name' => $attachment_file,
|
||||||
|
Loading…
Reference in New Issue
Block a user