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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5815 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2014-05-10 21:28:13 +00:00
parent 2b3e7fb6e1
commit 7d3a3260b5

View File

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