From 85fa1722a182be507d8943a93a601467a9a58bbd Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 7 May 2018 17:03:33 -0700 Subject: [PATCH] Allow use of # comment lines https://github.com/webmin/webmin/issues/915 --- custom/custom-lib.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/custom/custom-lib.pl b/custom/custom-lib.pl index c93199601..3d9b15c6d 100755 --- a/custom/custom-lib.pl +++ b/custom/custom-lib.pl @@ -311,6 +311,7 @@ if ($file !~ /^\// && $file !~ /\|\s*$/) { open(FILE, $file); while() { s/\r|\n//g; + next if (/^#/); if (/^"([^"]*)"\s+"([^"]*)"$/) { push(@rv, [ $1, $2 ]); }