From 80591b8a5ca535d415a691ab4c0c302c33a8126e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Thu, 8 Jul 2021 13:16:18 +0200 Subject: [PATCH] =?utf8?q?build=5Fstd=5Furl:=20Fragment=20unterst=C3=BCtze?= =?utf8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/common.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 19955c1ca..33ef7e32c 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -23,8 +23,8 @@ sub build_std_url { my $form = $main::form; - my $script = $form->{script}; - + my $script = $form->{script}; + my $fragment; my @parts; foreach my $key (@_) { @@ -33,6 +33,10 @@ sub build_std_url { if ($key =~ /(.*?)=(.*)/) { if ($1 eq 'script') { $script = $2; + + } elsif ($1 eq 'fragment') { + $fragment = $2; + } else { push @parts, $key; } @@ -44,7 +48,7 @@ sub build_std_url { } } - my $url = "${script}?" . join('&', @parts); + my $url = "${script}?" . join('&', @parts) . (defined $fragment ? "#$fragment" : ''); $main::lxdebug->leave_sub(2); -- 2.20.1