mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
10_MQTT2_DEVICE.pm: limit the autocreated json2nameValue to 10k (Forum #104687)
git-svn-id: https://svn.fhem.de/fhem/trunk@20396 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
f20685a362
commit
68621f714b
@ -189,7 +189,7 @@ MQTT2_DEVICE_Parse($$)
|
||||
my $cidArr = $modules{MQTT2_DEVICE}{defptr}{cid}{$newCid};
|
||||
return if(!$cidArr);
|
||||
my $add;
|
||||
if($value =~ m/^{.*}$/s) {
|
||||
if(length($value) < 10000 && $value =~ m/^{.*}$/s) {
|
||||
my $ret = json2nameValue($value);
|
||||
if(keys %{$ret}) {
|
||||
$topic =~ m,.*/([^/]+),;
|
||||
|
Loading…
Reference in New Issue
Block a user