fhem.pl: fix Authenticate checking for shell commands

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@10397 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-01-07 08:36:49 +00:00
parent 63ab8639ed
commit 88dff161c7

View File

@@ -1012,7 +1012,7 @@ AnalyzeCommand($$;$)
}
if($cmd =~ m/^"(.*)"$/s) { # Shell code in bg, to be able to call us from it
return "Forbidden command $cmd." if($cl || !Authorized($cl,"cmd","shell"));
return "Forbidden command $cmd." if($cl && !Authorized($cl,"cmd","shell"));
if($evalSpecials) {
map { $ENV{substr($_,1)} = $evalSpecials->{$_}; } keys %{$evalSpecials};
}