From 076e01eb0f0f00b5730e487176bddca64a97f4eb Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Thu, 19 Jul 2018 12:18:47 -0400 Subject: fix errors from group review --- Bugzilla/Quantum/CGI.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Bugzilla/Quantum') diff --git a/Bugzilla/Quantum/CGI.pm b/Bugzilla/Quantum/CGI.pm index 0e09d795e..ba09dded6 100644 --- a/Bugzilla/Quantum/CGI.pm +++ b/Bugzilla/Quantum/CGI.pm @@ -52,7 +52,6 @@ sub load_one { my $wrapper = sub { my ($c) = @_; my $stdin = $c->_STDIN; - my $stdout = ''; local $C = $c; local %ENV = $c->_ENV($file); local *STDIN; ## no critic (local) @@ -102,7 +101,7 @@ sub _ENV { $remote_user = $authenticate =~ /Basic\s+(.*)/ ? b64_decode $1 : ''; $remote_user = $remote_user =~ /([^:]+)/ ? $1 : ''; } - my $path_info = $c->param('PATH_INFO'); + my $path_info = $c->stash->{'mojo.captures'}{'PATH_INFO'}; my %captures = %{ $c->stash->{'mojo.captures'} // {} }; foreach my $key (keys %captures) { if ($key eq 'controller' || $key eq 'action' || $key eq 'PATH_INFO' || $key =~ /^REWRITE_/) { -- cgit v1.2.3-24-g4f1b