2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-28 11:01:59 +00:00

FLOORPLAN: bugfix for call of ext. javascripts

git-svn-id: https://svn.fhem.de/fhem/trunk@8062 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ulimaass 2015-02-22 08:18:15 +00:00
parent 040b31414e
commit f5e5d1142b

View File

@ -392,7 +392,6 @@ FP_digestCgi($) {
%FP_webArgs = (); %FP_webArgs = ();
$FP_fwdetail = undef; $FP_fwdetail = undef;
$arg =~ s,^[?/],,; $arg =~ s,^[?/],,;
my ($atop, $aleft, $drop) = ""; #mod
foreach my $pv (split("&", $arg)) { # per each URL-section devided by & foreach my $pv (split("&", $arg)) { # per each URL-section devided by &
next if($pv eq ""); # happens when post forgot to set FW_ME next if($pv eq ""); # happens when post forgot to set FW_ME
$pv =~ s/\+/ /g; $pv =~ s/\+/ /g;
@ -496,7 +495,7 @@ FP_htmlHeader($) {
next if($h !~ m/HASH/ || !$h->{SCRIPT} || $h->{SCRIPT} =~ m+pgm2/jquery+); next if($h !~ m/HASH/ || !$h->{SCRIPT} || $h->{SCRIPT} =~ m+pgm2/jquery+);
my $script = $h->{SCRIPT}; my $script = $h->{SCRIPT};
$script = ($script =~ m,^/,) ? "$FW_ME$script" : "$FW_ME/pgm2/$script"; $script = ($script =~ m,^/,) ? "$FW_ME$script" : "$FW_ME/pgm2/$script";
FW_pO sprintf($jsTemplate, $script) if ($script); FW_pO sprintf($jsTemplate, "", $script) if ($script);
} }
} }