summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Quantum
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Quantum')
-rw-r--r--Bugzilla/Quantum/CGI.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/Bugzilla/Quantum/CGI.pm b/Bugzilla/Quantum/CGI.pm
index 287305ad3..32fffa30e 100644
--- a/Bugzilla/Quantum/CGI.pm
+++ b/Bugzilla/Quantum/CGI.pm
@@ -102,10 +102,12 @@ sub _ENV {
$remote_user = $authenticate =~ /Basic\s+(.*)/ ? b64_decode $1 : '';
$remote_user = $remote_user =~ /([^:]+)/ ? $1 : '';
}
- my $path_info = delete $c->stash->{'mojo_captures'}{PATH_INFO};
+ my $path_info = $c->param('PATH_INFO');
my %captures = %{ $c->stash->{'mojo.captures'} // {} };
foreach my $key (keys %captures) {
- delete $captures{$key} if $key =~ /^REWRITE_/;
+ if ($key eq 'action' || $key eq 'PATH_INFO' || $key =~ /^REWRITE_/) {
+ delete $captures{$key};
+ }
}
my $cgi_query = Mojo::Parameters->new(%captures);
$cgi_query->append($req->url->query);