mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Make uptracker use temp dir
This commit is contained in:
@@ -33,7 +33,7 @@ if ($in{'uid'}) {
|
||||
$upfile = "$uinfo[7]/.tmp/upload.$id";
|
||||
}
|
||||
else {
|
||||
$upfile = "$ENV{'WEBMIN_VAR'}/upload.$id";
|
||||
$upfile = &tempname_dir()."/upload.$id";
|
||||
}
|
||||
|
||||
# Read the tracker file in a loop until done, or until 1 minute has passed
|
||||
|
||||
@@ -1012,7 +1012,7 @@ if ($<) {
|
||||
$vardir = "$uinfo[7]/.tmp";
|
||||
}
|
||||
else {
|
||||
$vardir = $ENV{'WEBMIN_VAR'};
|
||||
$vardir = &tempname_dir();
|
||||
}
|
||||
if (!-d $vardir) {
|
||||
&make_dir($vardir, 0755);
|
||||
|
||||
Reference in New Issue
Block a user