mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
00_MQTT2_SERVER.pm: Fix # matching for Topics starting with /
git-svn-id: https://svn.fhem.de/fhem/trunk@20131 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
df76eecc81
commit
ba1185ed4b
@ -451,6 +451,7 @@ MQTT2_SERVER_sendto($$$$)
|
||||
$val = "" if(!defined($val));
|
||||
foreach my $s (keys %{$hash->{subscriptions}}) {
|
||||
my $re = $s;
|
||||
$re =~ s,^#$,.*,g;
|
||||
$re =~ s,/?#,\\b.*,g;
|
||||
$re =~ s,\+,\\b[^/]+\\b,g;
|
||||
if($topic =~ m/^$re$/) {
|
||||
|
Loading…
Reference in New Issue
Block a user