Skip to content

Commit

Permalink
Properly authorize copy_list action
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Nov 5, 2024
1 parent 71bdf64 commit 1ed0dbe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cgi/wwsympa.fcgi.in
Original file line number Diff line number Diff line change
Expand Up @@ -1496,12 +1496,13 @@ while ($query = Sympa::WWW::FastCGI->new) {
my $old_subaction = $in{'subaction'};

## Check required action parameters
my $check_output = check_action_parameters($action);
my $check_action = $action eq 'move_list' && $in{'mode'} eq 'copy' ? 'copy_list' : $action;
my $check_output = check_action_parameters($check_action);

unless (defined $check_output) {
delete $param->{'list'};
wwslog('err', 'Missing required parameters for action "%s"',
$action);
$check_action);
delete $param->{'action'};
last;
} elsif ($check_output != 1) {
Expand Down

0 comments on commit 1ed0dbe

Please sign in to comment.