From 4af6ec3d5cbe9b75beca32abac7cd35af8b22176 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Thu, 7 Jan 2016 08:36:49 +0000 Subject: [PATCH] fhem.pl: fix Authenticate checking for shell commands git-svn-id: https://svn.fhem.de/fhem/trunk@10397 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index 902e270bf..66e7ce701 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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}; }