mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-21 13:50:59 +01:00
parent
7ffcca4cbd
commit
7cc2f91e66
@ -1803,11 +1803,14 @@ sub embedded_perl( $ ) {
|
||||
sub push_action_params( $ ) {
|
||||
my @params = split /,/, $_[0];
|
||||
my $oldparams = \@actparms;
|
||||
my $params = @params;
|
||||
|
||||
@actparms = ();
|
||||
|
||||
@actparms[1..$params] = @params;
|
||||
for ( my $i = 1; $i <= @params; $i++ ) {
|
||||
my $val = $params[$i - 1];
|
||||
|
||||
$actparms[$i] = $val eq '-' ? '' : $val eq '--' ? '-' : $val;
|
||||
}
|
||||
|
||||
$oldparams;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user