diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index b83245ff4c..3f0d6b5497 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -2853,7 +2853,7 @@ class mail_compose while(list($key,$value) = @each($this->sessionData['attachments'])) { #print "$key: ".$value['file']."
"; 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']); } } }