2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

fhem.pl: save readings containing a NL with \

git-svn-id: https://svn.fhem.de/fhem/trunk@4323 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-12-03 21:06:40 +00:00
parent 1d140bcfcb
commit 1ab0a1e245

View File

@ -1127,6 +1127,7 @@ WriteStatefile()
$val ne "Initialized" &&
$val ne "???") {
$val =~ s/;/;;/g;
$val =~ s/\n/\\\n/g;
print SFH "setstate $d $val\n"
}
@ -1148,6 +1149,7 @@ WriteStatefile()
}
my $val = $rd->{VAL};
$val =~ s/;/;;/g;
$val =~ s/\n/\\\n/g;
print SFH "setstate $d $rd->{TIME} $c $val\n";
}
}