forked from extern/egroupware
silence parning on unlink, by passing the correct file WITH path-info
This commit is contained in:
parent
700d0d78e5
commit
fbcad67cc1
@ -2853,7 +2853,7 @@ class mail_compose
|
|||||||
while(list($key,$value) = @each($this->sessionData['attachments'])) {
|
while(list($key,$value) = @each($this->sessionData['attachments'])) {
|
||||||
#print "$key: ".$value['file']."<br>";
|
#print "$key: ".$value['file']."<br>";
|
||||||
if (!empty($value['file']) && parse_url($value['file'],PHP_URL_SCHEME) != 'vfs') { // happens when forwarding mails
|
if (!empty($value['file']) && parse_url($value['file'],PHP_URL_SCHEME) != 'vfs') { // happens when forwarding mails
|
||||||
unlink($value['file']);
|
unlink($GLOBALS['egw_info']['server']['temp_dir'].'/'.$value['file']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user