projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76adc8e
)
Don't leave dangling temp file if connection is lost
author
Jamie Cameron
<jcameron@webmin.com>
Sat, 6 Nov 2010 18:52:10 +0000
(11:52 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Sat, 6 Nov 2010 18:52:10 +0000
(11:52 -0700)
updown/fetch.cgi
patch
|
blob
|
history
diff --git
a/updown/fetch.cgi
b/updown/fetch.cgi
index
960af11
..
8bccd25
100755
(executable)
--- a/
updown/fetch.cgi
+++ b/
updown/fetch.cgi
@@
-50,11
+50,11
@@
if ($ENV{'PATH_INFO'}) {
print "Content-size: $st[7]\n";
print "Content-type: application/zip\n\n";
open(FILE, $temp);
+ unlink($temp);
while(<FILE>) {
print $_;
}
close(FILE);
- unlink($temp);
}
else {
# Work out the type