mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-21 07:56:03 +00:00
96_allowed.pm: fix the wizard for unusual FHEMWEB names (Forum #116231)
git-svn-id: https://svn.fhem.de/fhem/trunk@23246 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
43bfd42b6d
commit
20a4020b0d
@ -354,13 +354,13 @@ allowed_fhemwebFn($$$$)
|
||||
my ($FW_wname, $d, $room, $pageHash) = @_; # pageHash is set for summaryFn.
|
||||
my $hash = $defs{$d};
|
||||
|
||||
my $vf = $defs{$d}{validFor} ? $defs{$d}{validFor} : "";
|
||||
my %vf = map {$_,1} split(",", $defs{$d}{validFor} ? $defs{$d}{validFor}:"");
|
||||
my (@F_arr, @t_arr);
|
||||
my @arr = map {
|
||||
my $ca = $modules{$defs{$_}{TYPE}}{CanAuthenticate};
|
||||
push(@F_arr, $_) if($ca == 1);
|
||||
push(@t_arr, $_) if($ca == 2);
|
||||
"<input type='checkbox' ".($vf =~ m/\b$_\b/ ? "checked ":"").
|
||||
"<input type='checkbox' ".($vf{$_} ? "checked ":"").
|
||||
"name='$_' class='vfAttr'><label>$_</label>"
|
||||
}
|
||||
grep { !$defs{$_}{SNAME} &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user