mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
10_MQTT2_DEVICE.pm: do not optimize topics with \ or Umlaut (Forum #116706)
git-svn-id: https://svn.fhem.de/fhem/trunk@23382 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e63c2b9936
commit
dd25909624
@ -611,7 +611,7 @@ MQTT2_DEVICE_addReading($$)
|
||||
|
||||
$re =~ s/\$DEVICETOPIC/$dt/g;
|
||||
if($cid && $re =~ m/^$cid:/) {
|
||||
if($re =~ m/^$cid:([^\?.*\[\](|)]+):\.\*$/) { # cid:topic:.*
|
||||
if($re =~ m/^$cid:([^\\\?.*\[\](|)]+):\.\*$/) { # cid:topic:.*
|
||||
$modules{MQTT2_DEVICE}{defptr}{"re:$cid:$1"}{$re}{"$name,$code"} = 1;
|
||||
} else {
|
||||
$modules{MQTT2_DEVICE}{defptr}{"re:$cid"}{$re}{"$name,$code"} = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user