From fbcad67cc162134480599f242b071ba463a777c0 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 5 Dec 2014 11:59:16 +0000 Subject: [PATCH] silence parning on unlink, by passing the correct file WITH path-info --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); } } }