2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-12 22:56:34 +00:00

fhem.pl: AnalyzeCommand checks for undefined arguments now (Forum #29963)

git-svn-id: https://svn.fhem.de/fhem/trunk@8318 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2015-03-29 10:25:12 +00:00
parent f667b71c91
commit 29dce9435a

View File

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