Commit 10e5c4a1 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 660502: (CVE-2011-2977) [SECURITY] Temporary files for uploaded attachments…

Bug 660502: (CVE-2011-2977) [SECURITY] Temporary files for uploaded attachments are not deleted on Windows r=glob a=LpSolit
parent 5d70d16f
......@@ -795,7 +795,10 @@ sub create {
# If we have a filehandle, we need its content to store it in the DB.
elsif (ref $data) {
local $/;
$data = <$data>;
# Store the content in a temp variable while we close the FH.
my $tmp = <$data>;
close $data;
$data = $tmp;
}
my $sth = $dbh->prepare("INSERT INTO attach_data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment