mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-21 22:01:57 +01:00
parent
7ffcca4cbd
commit
7cc2f91e66
@ -1803,11 +1803,14 @@ sub embedded_perl( $ ) {
|
|||||||
sub push_action_params( $ ) {
|
sub push_action_params( $ ) {
|
||||||
my @params = split /,/, $_[0];
|
my @params = split /,/, $_[0];
|
||||||
my $oldparams = \@actparms;
|
my $oldparams = \@actparms;
|
||||||
my $params = @params;
|
|
||||||
|
|
||||||
@actparms = ();
|
@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;
|
$oldparams;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user