1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 22:19:38 +00:00

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

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

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]*$//;