mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
FHEM2FHEM: Some more checks against invalid data
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@4020 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7e91cc72d6
commit
f1b8cb3a3e
@ -141,6 +141,7 @@ FHEM2FHEM_Read($)
|
||||
|
||||
if($hash->{informType} eq "LOG") {
|
||||
my ($type, $name, $msg) = split(" ", $rmsg, 3);
|
||||
next if(!defined($msg)); # Bogus data
|
||||
my $re = $hash->{regexp};
|
||||
next if($re && !($name =~ m/^$re$/ || "$name:$msg" =~ m/^$re$/));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user