mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
Correct RE in split_action()
This commit is contained in:
parent
a9a19c4da6
commit
1528cc2094
@ -190,7 +190,7 @@ sub split_action ( $ ) {
|
|||||||
#
|
#
|
||||||
# The param may contain one or more ':' characters
|
# The param may contain one or more ':' characters
|
||||||
#
|
#
|
||||||
if ( $action =~ /^([^(:]+\(.*?\))(:(.*))$/ ) {
|
if ( $action =~ /^([^(:]+\(.*?\))(:(.*))?$/ ) {
|
||||||
$target = $1;
|
$target = $1;
|
||||||
$action = $2 ? $3 : '';
|
$action = $2 ? $3 : '';
|
||||||
$max = 2;
|
$max = 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user