From: wbudic Date: Mon, 15 Nov 2021 06:36:49 +0000 (+1100) Subject: minor fixes X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=076cc0b80a4221ed6f53e2ba806a80b35146265d;p=LifeLog.git minor fixes --- 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;