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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user