From fc211f475fca2e8e8d8d338caaccd14fc0486473 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 11 Dec 2017 09:36:50 -0700 Subject: [PATCH] Also remove slash (/) from subject & attachments when going to VFS --- mail/inc/class.mail_ui.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 378033b816..5076731407 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -2844,7 +2844,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2); if (Vfs::is_dir($path)) { $headers = $this->mail_bo->getMessageHeader($uid,$partID,true,false,$mailbox); - $file = $dir . '/'.preg_replace('/[\f\n\t\v\\:*#?<>\|]/',"_",$headers['SUBJECT']).'.eml'; + $file = $dir . '/'.preg_replace('$[\f\n\t\v\\:*#?<>\|/]$',"_",$headers['SUBJECT']).'.eml'; } else { @@ -2988,7 +2988,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2); $attachment = $this->mail_bo->getAttachment($params['uid'],$params['part'],$params['is_winmail'],false); } - $file = $dir. '/' . $attachment['filename']; + $file = $dir. '/' . preg_replace('$[\f\n\t\v\\:*#?<>\|/]$',"_",$attachment['filename']); $counter = 1; $tmp_file = $file;