mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
* Mail: fix for failed zip-download when users startfolder is not writeable
Reason: get_home_dir may fetch the users startfolder if set; if not writeable, action will fail
This commit is contained in:
parent
01f764404f
commit
29ca1beb5b
@ -2616,7 +2616,9 @@ class mail_ui
|
|||||||
|
|
||||||
// put them in VFS so they can be zipped
|
// put them in VFS so they can be zipped
|
||||||
$header = $this->mail_bo->getMessageHeader($message_id,'',true,false,$mailbox);
|
$header = $this->mail_bo->getMessageHeader($message_id,'',true,false,$mailbox);
|
||||||
$temp_path = egw_vfs::get_home_dir() . "/.mail_$message_id";
|
//get_home_dir may fetch the users startfolder if set; if not writeable, action will fail. TODO: use temp_dir
|
||||||
|
$homedir = '/home/'.$GLOBALS['egw_info']['user']['account_lid'];
|
||||||
|
$temp_path = $homedir/*egw_vfs::get_home_dir()*/ . "/.mail_$message_id";
|
||||||
if(egw_vfs::is_dir($temp_path)) egw_vfs::remove ($temp_path);
|
if(egw_vfs::is_dir($temp_path)) egw_vfs::remove ($temp_path);
|
||||||
|
|
||||||
// Add subject to path, so it gets used as the file name
|
// Add subject to path, so it gets used as the file name
|
||||||
|
Loading…
Reference in New Issue
Block a user