2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +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:
rudolfkoenig 2020-12-19 11:40:59 +00:00
parent e63c2b9936
commit dd25909624

View File

@ -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;