From 7d3a3260b5b305d6fdd03bd18388c55338db4d9c 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: svn://svn.code.sf.net/p/fhem/code/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;