silence parning on unlink, by passing the correct file WITH path-info

This commit is contained in:
Klaus Leithoff 2014-12-05 11:59:16 +00:00
parent 700d0d78e5
commit fbcad67cc1

View File

@ -2853,7 +2853,7 @@ class mail_compose
while(list($key,$value) = @each($this->sessionData['attachments'])) {
#print "$key: ".$value['file']."<br>";
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']);
}
}
}