Compare commits

...

6 Commits

Author SHA1 Message Date
Ilia Ross
2dfa6cfc1b Merge branch 'master' of github.com:webmin/webmin
Some checks failed
webmin.dev: webmin/webmin / build (push) Has been cancelled
2026-01-27 02:24:59 +02:00
Jamie Cameron
4f438906d2 New version bump 2026-01-26 14:25:51 -08:00
Jamie Cameron
c8fcde9579 remove useless brackets 2026-01-26 14:25:06 -08:00
Ilia Ross
e6184a0036 Fix to only check for uniqueness 2026-01-26 22:55:18 +02:00
Jamie Cameron
54bb3ee293 No need to check for undef values, as this can never happen 2026-01-26 12:54:55 -08:00
Ilia Ross
bfb496ca29 Fix temporary file upload directory
e8e804ddca (r175609008)
2026-01-26 21:59:39 +02:00
4 changed files with 10 additions and 10 deletions

View File

@@ -112,7 +112,7 @@ if ($canedit) {
print ui_buttons_row("delete_part.cgi", $text{'part_delete'}, $text{'part_deletedesc'}, $hiddens);
print ui_buttons_end();
} else {
print ($is_boot) ? "<b>$text{'part_bootcannotedit'}</b><p>\n"
print $is_boot ? "<b>$text{'part_bootcannotedit'}</b><p>\n"
: "<b>$text{'part_cannotedit'}</b><p>\n";
}
# SMART button (physical device)

View File

@@ -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

View File

@@ -1 +1 @@
2.620
2.621

View File

@@ -415,10 +415,10 @@ push(@can_dirs, $gconfig{'tempdir_sys'}) if ($gconfig{'tempdir_sys'});
# Common fallbacks
push(@can_dirs, "/dev/shm", "/tmp", "/var/tmp", "/usr/tmp");
# Remove empty and duplicate entries, which can happen when both configured
# dirs are set to the same path, or when a configured path matches one of
# the built-in defaults
@can_dirs = &unique(grep { $_ } @can_dirs);
# Remove duplicate entries, which can happen when both configured dirs are set
# to the same path, or when a configured path matches one of the built-in
# defaults
@can_dirs = &unique(@can_dirs);
# Test each candidate in turn
for my $dir (@can_dirs) {
@@ -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