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:
parent
29ace4e453
commit
c3bcd86691
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user