projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84a8db6
)
Don't download ZIP file of large dir twice!!
author
Jamie Cameron
<jcameron@webmin.com>
Sat, 6 Nov 2010 18:51:19 +0000
(11:51 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Sat, 6 Nov 2010 18:51:19 +0000
(11:51 -0700)
file/show.cgi
patch
|
blob
|
history
diff --git
a/file/show.cgi
b/file/show.cgi
index
3e4bda8
..
6ddb4c5
100755
(executable)
--- a/
file/show.cgi
+++ b/
file/show.cgi
@@
-109,11
+109,11
@@
if ($in{'format'}) {
print "Content-length: $st[7]\n";
print "Content-type: $type\n\n";
open(FILE, $temp);
+ unlink($temp);
while(read(FILE, $buf, 1024)) {
print $buf;
}
close(FILE);
- unlink($temp);
}
else {
if (!open(FILE, $p)) {
@@
-158,5
+158,6
@@
sub ok_exit
{
print "Content-type: text/plain\n\n";
print "\n";
+exit;
}