configDB.pm: length check for reading value (max = 64kB) #112486

git-svn-id: https://svn.fhem.de/fhem/trunk@22290 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2020-06-27 17:52:36 +00:00
parent 6740362c9a
commit cac1be3c8b

View File

@ -537,7 +537,7 @@ sub cfgDB_SaveState {
$val =~ s/\n/\\\n/g;
$out = "setstate $d $rd->{TIME} $c $val";
if (length($out) > 65530) {
Log3(undef, 1, "Device $d Reading $c: value exceeds length of 64k and will be ignored");
Log3(undef, 1, "WriteStatefile $d $c: value exceeds length of 64k and will be ignored");
} else {
push @rowList, $out;
}