X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FInifile.pm;h=aadec0af1fe6572ec7209e268a9ff79ba1a85244;hb=f0ce00ebc34b16381f25c9ce75d36521bd046e1f;hp=f7fe27b3c60fd7afa3c0bdee0a6f616f97dc663b;hpb=db53dc8ab328b82c7af17896487674ad98f2af6b;p=kivitendo-erp.git diff --git a/SL/Inifile.pm b/SL/Inifile.pm index f7fe27b3c..aadec0af1 100644 --- a/SL/Inifile.pm +++ b/SL/Inifile.pm @@ -52,12 +52,10 @@ sub new { open FH, "$file" or Form->error("$file : $!"); while () { - next if m/^(#|;|\s)/; - chomp; # strip comments - s/(#|;).*//g; + s/#.*//g; # remove any trailing whitespace s/^\s*//;