mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
01_FHEMWEB.pm: do not forward bogus readings to longpoll (Forum #70608)
git-svn-id: https://svn.fhem.de/fhem/trunk@14001 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2def3bb3b6
commit
7e5c0aca36
@ -2849,6 +2849,7 @@ FW_Notify($$)
|
||||
next; #ignore 'set' commands
|
||||
}
|
||||
my ($readingName,$readingVal) = split(": ",$events->[$i],2);
|
||||
next if($readingName !~ m/^[A-Za-z\d_\.\-\/]+$/); # Forum #70608
|
||||
push @data, FW_longpollInfo($h->{fmt},
|
||||
"$dn-$readingName", $readingVal,$readingVal);
|
||||
push @data, FW_longpollInfo($h->{fmt}, "$dn-$readingName-ts", $tn, $tn);
|
||||
|
@ -4942,6 +4942,7 @@ parseParams($;$$)
|
||||
|
||||
while (@params) {
|
||||
my $param = shift(@params);
|
||||
next if($param eq "");
|
||||
my ($key, $value) = split( '=', $param, 2 );
|
||||
|
||||
if( !defined( $value ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user