]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - config/cfgroot/general-functions.pl
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next-suricata
[ipfire-2.x.git] / config / cfgroot / general-functions.pl
index e8495e88543c860af953c6238f6291021ede66e9..2d3eb73d7fff55038397918d689d10e47a5d293e 100644 (file)
@@ -149,6 +149,10 @@ sub readhash
        while (<FILE>)
        {
                chop;
+
+               # Skip comments.
+               next if ($_ =~ /\#/);
+
                ($var, $val) = split /=/, $_, 2;
                if ($var)
                {