Fix to return on redirect

This commit is contained in:
Ilia Ross
2026-05-03 00:14:38 +02:00
parent a0fb85c152
commit 0e4349565a
6 changed files with 7 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ if ($in{'confirm'}) {
webmin_log("clear", "table", $table->{'name'},
{ 'family' => $table->{'family'} });
redirect("active.cgi");
return;
}
ui_print_header(undef, $text{'clear_title'}, "", "intro", 1, 1);

View File

@@ -47,6 +47,7 @@ if ($in{'create'}) {
redirect("index.cgi?table_family=".urlize($family).
"&table_name=".urlize($name));
return;
}
ui_print_header(undef, $text{'create_title'}, "", "intro", 1, 1);

View File

@@ -37,6 +37,7 @@ if ($in{'confirm'}) {
webmin_log("delete", "table", $table->{'name'},
{ 'family' => $table->{'family'} });
redirect("index.cgi");
return;
}
ui_print_header(undef, $text{'delete_title'}, "", "intro", 1, 1);

View File

@@ -57,6 +57,7 @@ if ($in{'import'}) {
{ 'family' => $source->{'family'}, 'new' => $name });
redirect("index.cgi?table_family=".urlize($source->{'family'}).
"&table_name=".urlize($name));
return;
}
ui_print_header(undef, $text{'import_title'}, "", "intro", 1, 1);

View File

@@ -38,6 +38,7 @@ if ($is_new) {
if ($is_rename) {
if ($name eq $old) {
redirect("index.cgi?table=$in{'table'}");
return;
}
if ($name ne $old) {
$table->{'chains'}->{$name} = $table->{'chains'}->{$old};
@@ -65,6 +66,7 @@ if ($is_rename) {
'table' => $table->{'name'},
'family' => $table->{'family'} });
redirect("index.cgi?table=$in{'table'}");
return;
}
my $type = $in{'chain_type'};

View File

@@ -44,6 +44,7 @@ if ($in{'action'} eq 'create') {
webmin_log("setup", "create", $profile,
{ 'family' => 'inet', 'table' => $table_name });
redirect("index.cgi?table_family=inet&table_name=".urlize($table_name));
return;
}
ui_print_header(undef, $text{'setup_title'}, "", "intro", 1, 1);