From 7c617696a871101dbbc0cc696faf285a7b807ace Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Thu, 4 Aug 2011 22:24:57 +0200 Subject: [PATCH] Bug 660502: (CVE-2011-2977) [SECURITY] Temporary files for uploaded attachments are not deleted on Windows r=glob a=LpSolit --- Bugzilla/Attachment.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Bugzilla/Attachment.pm b/Bugzilla/Attachment.pm index a2abebb8d9..d6037b3e79 100644 --- a/Bugzilla/Attachment.pm +++ b/Bugzilla/Attachment.pm @@ -560,6 +560,7 @@ sub _check_data { local $/; my $fh = $params->{data}; $data = <$fh>; + close $fh; } } Bugzilla::Hook::process('attachment_process_data', { data => \$data, -- 2.47.2