2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-20 19:36:02 +00:00

configDB - bugfix: last byte missing on import of textile if last line not terminated correctly

git-svn-id: https://svn.fhem.de/fhem/trunk@5815 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2014-05-10 21:28:13 +00:00
parent 29ace4e453
commit c3bcd86691

View File

@ -852,7 +852,9 @@ sub _cfgDB_Fileimport($;$) {
open (in,"<$filename") || die $!; open (in,"<$filename") || die $!;
while (<in>){ while (<in>){
$counter++; $counter++;
my $line = substr($_,0,length($_)-1); my $line = $_;
$line =~ s/\n//;
# my $line = substr($_,0,length($_)-1);
$sth->execute($filename, $line); $sth->execute($filename, $line);
} }
close in; close in;