diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 5d1005160..9350f4563 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -657,7 +657,7 @@ sub process_actions1() { $action =~ s/:.*$//; } - next unless $action; + fatal_error "Invalid Action Name ($action)" unless $action =~ /^[\w-]+$/; if ( $targets{$action} ) { warning_message "Duplicate Action Name ($action) Ignored" unless $targets{$action} & ACTION;