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:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user