FHEMWEB: allowedCommands check for style too restrictive
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4845 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1492,7 +1492,8 @@ FW_style($$)
|
||||
my ($cmd, $msg) = @_;
|
||||
my @a = split(" ", $cmd);
|
||||
|
||||
return if( AttrVal($FW_wname,"allowedCommands","") !~ m/\b$a[0]\b/);
|
||||
my $ac = AttrVal($FW_wname,"allowedCommands","");
|
||||
return if($ac && $ac !~ m/\b$a[0]\b/);
|
||||
|
||||
my $start = "<div id=\"content\"><table><tr><td>";
|
||||
my $end = "</td></tr></table></div>";
|
||||
|
||||
Reference in New Issue
Block a user