Fix to improve the name of the downloaded backup file #2570
Some checks are pending
webmin.dev: webmin/webmin / build (push) Waiting to run

This commit is contained in:
Ilia Ross
2026-03-14 13:19:05 +02:00
parent 1d594e82f0
commit 96c2312349

View File

@@ -60,12 +60,11 @@ print &ui_tabs_end_tab();
# Show immediate form
print &ui_tabs_start_tab("tab", "backup");
my $filename = 'webmin-backup-config-on-';
my $hostname = &get_system_hostname();
my $hostname = &get_system_hostname() || "localhost";
$hostname =~ s/\./-/g;
$filename .= $hostname;
$filename .= "-".strftime("%Y-%m-%d-%H-%M", localtime);
print &ui_form_start("backup.cgi/$filename.tgz", "post");
my $filename = $hostname."+configuration_backup-webmin-".
strftime("%Y-%m-%d-%H-%M", localtime);
print &ui_form_start("backup.cgi/$filename.tar.gz", "post");
print &ui_table_start($text{'index_header'}, undef, 2);
my @dmods = split(/\s+/, $config{'mods'} || "");