fhem.pl: fix Authenticate checking for shell commands

git-svn-id: https://svn.fhem.de/fhem/trunk@10397 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2016-01-07 08:36:49 +00:00
parent 078dd8491b
commit 4af6ec3d5c

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};
}