diff --git a/fhem/webfrontend/pgm2/01_FHEMWEB.pm b/fhem/webfrontend/pgm2/01_FHEMWEB.pm index ddf0cce1c..210942988 100755 --- a/fhem/webfrontend/pgm2/01_FHEMWEB.pm +++ b/fhem/webfrontend/pgm2/01_FHEMWEB.pm @@ -395,7 +395,7 @@ FW_digestCgi($) %__pos = (); $__room = ""; - $arg =~ s/^\?//; + $arg =~ s,^[?/],,; foreach my $pv (split("&", $arg)) { $pv =~ s/\+/ /g; $pv =~ s/%(..)/chr(hex($1))/ge; @@ -403,7 +403,6 @@ FW_digestCgi($) # Multiline: escape the NL for fhem $v =~ s/[\r]\n/\\\n/g if($v && $p && $p ne "data"); - #Log(0, "P: $p, V: $v"); if($p eq "detail") { $__detail = $v; } if($p eq "room") { $__room = $v; }