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:
rudolfkoenig
2014-02-08 10:04:13 +00:00
parent d6581a0571
commit 04110d0c26

View File

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