mirror of
https://github.com/webmin/webmin.git
synced 2026-05-06 15:20:29 +01:00
Fix to return on redirect
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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'};
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user