diff --git a/fhem/configDB.pm b/fhem/configDB.pm index 90e45db2e..6e797841f 100644 --- a/fhem/configDB.pm +++ b/fhem/configDB.pm @@ -852,7 +852,9 @@ sub _cfgDB_Fileimport($;$) { open (in,"<$filename") || die $!; while (){ $counter++; - my $line = substr($_,0,length($_)-1); + my $line = $_; + $line =~ s/\n//; +# my $line = substr($_,0,length($_)-1); $sth->execute($filename, $line); } close in;