summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Quantum
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-06-16 01:11:03 +0200
committerDylan William Hardison <dylan@hardison.net>2018-06-28 22:41:58 +0200
commit561a205df8fdb1950df167c6915d52601630c08a (patch)
tree906844fca79dae4cd1b608d33e1cdaf926fcddab /Bugzilla/Quantum
parentd384888e734489a1524ca3ab1ad271343258bdea (diff)
downloadbugzilla-561a205df8fdb1950df167c6915d52601630c08a.tar.gz
bugzilla-561a205df8fdb1950df167c6915d52601630c08a.tar.xz
fix more tests
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);