2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 03:06:37 +00:00

01_FHEMWEB.pm: fix multi-allowed checking

git-svn-id: https://svn.fhem.de/fhem/trunk@22200 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2020-06-19 22:31:14 +00:00
parent 2d712a17e0
commit 9e4cdaaae8
2 changed files with 3 additions and 3 deletions

View File

@ -1001,9 +1001,9 @@ FW_answerCall($)
return -1;
}
if($FW_lastWebName ne $FW_wname || $FW_lastHashUpdate != $lastDefChange) {
if($FW_lastWebName ne $FW_cname || $FW_lastHashUpdate != $lastDefChange) {
FW_updateHashes();
$FW_lastWebName = $FW_wname;
$FW_lastWebName = $FW_cname;
$FW_lastHashUpdate = $lastDefChange;
}

View File

@ -2896,7 +2896,7 @@ CommandAttr($$)
my $a1 = $a[1];
return "$a[0]: bad attribute name '$a1' (allowed chars: A-Za-z/\\d_\\.-)"
if($featurelevel > 5.9 && !goodReadingName($a1) && $a1 ne "?");
return "attr $param: attribute value is missing" if($#a < 2);
return "attr $param: attribute value is missing" if($#a < 2 && $a1 ne "?");
my @rets;
foreach my $sdev (devspec2array($a[0], $a1 && $a1 eq "?" ? undef : $cl)) {