From 654f7dd80552766b3bcdac15187c82750f113bd7 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 5 Jun 2012 09:02:12 -0700 Subject: [PATCH] Fix single-line embedded Perl Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 121ee865c..d24468409 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -2104,6 +2104,8 @@ sub embedded_perl( $ ) { fatal_error ( "Missing END PERL" ) unless $last; fatal_error ( "Invalid END PERL directive" ) unless $currentline =~ /^\s*$/; + } else { + $currentline = ''; } $embedded++;