mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 05:06:35 +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:
parent
f667b71c91
commit
29dce9435a
@ -925,6 +925,7 @@ AnalyzeCommand($$;$)
|
|||||||
{
|
{
|
||||||
my ($cl, $cmd, $allowed) = @_;
|
my ($cl, $cmd, $allowed) = @_;
|
||||||
|
|
||||||
|
$cmd = "" if(!defined($cmd)); # Forum #29963
|
||||||
$cmd =~ s/^(\n|[ \t])*//;# Strip space or \n at the begginning
|
$cmd =~ s/^(\n|[ \t])*//;# Strip space or \n at the begginning
|
||||||
$cmd =~ s/[ \t]*$//;
|
$cmd =~ s/[ \t]*$//;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user