From c3bcd86691caa4ee2afbd2be7075826fcb48c56b Mon Sep 17 00:00:00 2001 From: betateilchen <> Date: Sat, 10 May 2014 21:28:13 +0000 Subject: [PATCH] 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 --- fhem/configDB.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;