mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
33_readingsGroup.pm: possible fix for unescaped { in regex
git-svn-id: https://svn.fhem.de/fhem/trunk@21150 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
1d4a9ca55b
commit
bd9486dc0c
@ -1422,7 +1422,12 @@ readingsGroup_Notify($$)
|
|||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
next if( defined($regex) && $reading !~ m/^$regex$/);
|
if( $regex ) {
|
||||||
|
my $regex = $regex;
|
||||||
|
$regex =~ s/\{/\\\{/g;
|
||||||
|
$regex =~ s/\}/\\\}/g;
|
||||||
|
next if( $reading !~ m/^$regex$/);
|
||||||
|
}
|
||||||
|
|
||||||
my $value = $value;
|
my $value = $value;
|
||||||
if( $format eq 't' || $format eq 'sec' ) {
|
if( $format eq 't' || $format eq 'sec' ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user