mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
@@ -33,7 +33,7 @@ if ($in{'uid'}) {
|
||||
$upfile = "$uinfo[7]/.tmp/upload.$id";
|
||||
}
|
||||
else {
|
||||
$upfile = &tempname_dir()."/upload.$id";
|
||||
$upfile = "$ENV{'WEBMIN_VAR'}/uploads/upload.$id";
|
||||
}
|
||||
|
||||
# Read the tracker file in a loop until done, or until 1 minute has passed
|
||||
|
||||
@@ -1071,10 +1071,10 @@ if ($<) {
|
||||
$vardir = "$uinfo[7]/.tmp";
|
||||
}
|
||||
else {
|
||||
$vardir = &tempname_dir();
|
||||
$vardir = "$ENV{'WEBMIN_VAR'}/uploads";
|
||||
}
|
||||
if (!-d $vardir) {
|
||||
&make_dir($vardir, 0755);
|
||||
&make_dir($vardir, 0750);
|
||||
}
|
||||
|
||||
# Remove any upload.* files more than 1 hour old
|
||||
|
||||
Reference in New Issue
Block a user