mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 05:06:35 +00:00
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:
parent
64f5da3314
commit
8560e4e74a
@ -1012,7 +1012,7 @@ AnalyzeCommand($$;$)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($cmd =~ m/^"(.*)"$/s) { # Shell code in bg, to be able to call us from it
|
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) {
|
if($evalSpecials) {
|
||||||
map { $ENV{substr($_,1)} = $evalSpecials->{$_}; } keys %{$evalSpecials};
|
map { $ENV{substr($_,1)} = $evalSpecials->{$_}; } keys %{$evalSpecials};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user