2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-06 12:18:46 +00:00

fhem.pl: allow strange characters in _hidden_ readings (Forum #45788)

git-svn-id: https://svn.fhem.de/fhem/trunk@10376 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-01-06 07:10:23 +00:00
parent ffb100fdd2
commit 46b8eb6098

View File

@ -2585,7 +2585,7 @@ CommandSetstate($$)
Log3 $d, 3, "WARNING: unsupported character in reading $sname ". Log3 $d, 3, "WARNING: unsupported character in reading $sname ".
"(not A-Za-z/\\d_\\.-), notify the $d->{TYPE} module maintainer." "(not A-Za-z/\\d_\\.-), notify the $d->{TYPE} module maintainer."
if($sname !~ m/^[A-Za-z\d_\.\-\/]+$/); if($sname !~ m/^[A-Za-z\d_\.\-\/]+$/ && $sname !~ m/^\./);
if(!defined($d->{READINGS}{$sname}) || if(!defined($d->{READINGS}{$sname}) ||
!defined($d->{READINGS}{$sname}{TIME}) || !defined($d->{READINGS}{$sname}{TIME}) ||