mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
notify: check for regexps starting with *
git-svn-id: https://svn.fhem.de/fhem/trunk@5398 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9687618392
commit
eb71896959
@ -35,6 +35,7 @@ notify_Define($$)
|
||||
}
|
||||
|
||||
# Checking for misleading regexps
|
||||
return "Bad regexp: starting with *" if($re =~ m/^\*/);
|
||||
eval { "Hallo" =~ m/^$re$/ };
|
||||
return "Bad regexp: $@" if($@);
|
||||
$hash->{REGEXP} = $re;
|
||||
|
Loading…
Reference in New Issue
Block a user