2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-07 19:04:20 +00:00

fhem.pl: fix crash (Forum #45039)

git-svn-id: https://svn.fhem.de/fhem/trunk@10072 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-12-02 20:37:34 +00:00
parent eb6167f712
commit a7664bdb33

View File

@ -988,7 +988,7 @@ AnalyzeCommand($$;$)
{
my ($cl, $cmd, $allowed) = @_;
$cl->{".allowed"} = $allowed if($cl); Forum #38276
$cl->{".allowed"} = $allowed if($cl); # Forum #38276
$cmd = "" if(!defined($cmd)); # Forum #29963
$cmd =~ s/^(\n|[ \t])*//;# Strip space or \n at the begginning
$cmd =~ s/[ \t]*$//;