Skip to content

Commit

Permalink
Fix to remove redundant code for retrieving parameters
Browse files Browse the repository at this point in the history
Note: %in is always initialized as part of `init_type()`.
  • Loading branch information
iliajie committed Aug 11, 2024
1 parent c351786 commit f9e19a7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions authentic.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
%gconfig,
%tconfig,
%text,
%in,
$scriptname,
$basic_virtualmin_domain,
$basic_virtualmin_menu,
Expand Down Expand Up @@ -122,12 +123,8 @@ sub theme_header
$user_module_config_directory ? "uconfig.cgi" :
"config.cgi";
my $params = "";
my %in_;
if ($ENV{'REQUEST_METHOD'} eq 'GET') {
&ReadParse(\%in_);
}
foreach my $k (keys %in_) {
foreach my $v (split(/\0/, $in_{$k})) {
foreach my $k (keys %in) {
foreach my $v (split(/\0/, $in{$k})) {
$params .= "&_cparam_".
&urlize($k)."=".&urlize($v);
}
Expand Down

0 comments on commit f9e19a7

Please sign in to comment.