forked from extern/egroupware
Deal with special characters in subject - make sure email filename is still valid
This commit is contained in:
parent
c88b82c4b0
commit
c2e12a6583
@ -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