diff --git a/FHEM/95_FLOORPLAN.pm b/FHEM/95_FLOORPLAN.pm index 54517ee6c..9f3ceea3e 100644 --- a/FHEM/95_FLOORPLAN.pm +++ b/FHEM/95_FLOORPLAN.pm @@ -228,7 +228,7 @@ FP_CGI(){ $params[1] = $params[2]; } my @htmlpart = split("\\?", $params[1]) if ($params[1]); # split URL by ? -> htmlpart[0] = FP_name, htmlpart[1] = commandstring - if (!$htmlpart[1] && $htmlpart[0] !~ "\\?") { # in case of 'post' URL does not contain ? + if (!$htmlpart[1] && $htmlpart[0] && $htmlpart[0] !~ "\\?") { # in case of 'post' URL does not contain ? $htmlpart[0] =~ /([a-z0-9.:_]+)&(.*)/i; $htmlpart[1] = $2 if ($2); $htmlpart[1] =~ s/\\+/&/g if ($htmlpart[1]);