From 561a205df8fdb1950df167c6915d52601630c08a Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 15 Jun 2018 19:11:03 -0400 Subject: fix more tests --- Bugzilla/Quantum/CGI.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Bugzilla/Quantum/CGI.pm') 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); -- cgit v1.2.3-24-g4f1b