fhem.pl/devspec2array bugfix: ? returned a list of everything.
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5062 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -926,7 +926,7 @@ devspec2array($)
|
||||
}
|
||||
$val="" if(!defined($val));
|
||||
|
||||
my $lre = ($n eq "room" ? "(^|,)$re(,|\$)" : "^$re\$");
|
||||
my $lre = ($n eq "room" ? "(^|,)($re)(,|\$)" : "^($re)\$");
|
||||
eval { # a bad regexp is deadly
|
||||
if(($op eq "=" && $val =~ m/$lre/) ||
|
||||
($op eq "!=" && $val !~ m/$lre/)) {
|
||||
|
||||
Reference in New Issue
Block a user