Skip to content

Commit

Permalink
Fix save config redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Apr 17, 2024
1 parent 6d51274 commit 7603d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config_save.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ if (&foreign_check("webmin")) {
}

&webmin_log("_config_", undef, undef, \%in, $module);
my $redir = &link_config_cparams($module, \%in);
if ($in{'save_next'}) {
my $redir = &link_config_cparams($module, \%in, 1);
&redirect("config.cgi?module=$module&section=$in{'section_next'}".
($redir =~ /\?(.*)$/ ? "&".$1 : ""));
} else {
&redirect($redir);
&redirect(&link_config_cparams($module, \%in));
}

0 comments on commit 7603d62

Please sign in to comment.