mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-21 10:27:52 +02:00
Also remove slash (/) from subject & attachments when going to VFS
This commit is contained in:
parent
32296f45fa
commit
48f0c07432
@ -2845,7 +2845,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
|||||||
if (Vfs::is_dir($path))
|
if (Vfs::is_dir($path))
|
||||||
{
|
{
|
||||||
$headers = $this->mail_bo->getMessageHeader($uid,$partID,true,false,$mailbox);
|
$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
|
else
|
||||||
{
|
{
|
||||||
@ -2989,7 +2989,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2);
|
|||||||
$attachment = $this->mail_bo->getAttachment($params['uid'],$params['part'],$params['is_winmail'],false);
|
$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;
|
$counter = 1;
|
||||||
$tmp_file = $file;
|
$tmp_file = $file;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user