From 076cc0b80a4221ed6f53e2ba806a80b35146265d Mon Sep 17 00:00:00 2001 From: wbudic Date: Mon, 15 Nov 2021 17:36:49 +1100 Subject: [PATCH] minor fixes --- htdocs/cgi-bin/system/modules/CNFParser.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/cgi-bin/system/modules/CNFParser.pm b/htdocs/cgi-bin/system/modules/CNFParser.pm index c05759f..6feaed2 100644 --- a/htdocs/cgi-bin/system/modules/CNFParser.pm +++ b/htdocs/cgi-bin/system/modules/CNFParser.pm @@ -263,7 +263,7 @@ try{ } if($t eq 'CONST'){#Single constant with mulit-line value; - $v =~ s/^\s//; + $v =~ s/^\s// if $v; $consts{$e} = $v if not $consts{$e}; # Not allowed to overwrite constant. }elsif($t eq 'DATA'){ $st =""; @@ -278,7 +278,7 @@ try{ $v = $d; #capture spected value. $d =~ s/\$$|\s*$//g; #trim any space and system or constant '$' end marker. if($v=~m/\$$/){ - $v = $consts{$d} + $v = $consts{$d}; $v="" if not $v; } else{ $v = $d; -- 2.34.1