summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-07-19 18:18:47 +0200
committerDylan William Hardison <dylan@hardison.net>2018-08-20 23:52:50 +0200
commita46ca861f527d75fe28f784794207f50e8ec7f2b (patch)
tree5b966ce79b58ea3bd4f3368e3098ba13f7603cd6 /Bugzilla
parent482953b67c0c348c4fc8df77609bb6aaf6ceb326 (diff)
downloadbugzilla-a46ca861f527d75fe28f784794207f50e8ec7f2b.tar.gz
bugzilla-a46ca861f527d75fe28f784794207f50e8ec7f2b.tar.xz
fix errors from group review
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Quantum.pm2
-rw-r--r--Bugzilla/Quantum/CGI.pm3
2 files changed, 2 insertions, 3 deletions
diff --git a/Bugzilla/Quantum.pm b/Bugzilla/Quantum.pm
index e4c75726c..b5ee83d8e 100644
--- a/Bugzilla/Quantum.pm
+++ b/Bugzilla/Quantum.pm
@@ -52,7 +52,7 @@ sub startup {
$r->any('/')->to('CGI#index_cgi');
$r->any('/rest')->to('CGI#rest_cgi');
- $r->any('/rest.cgi/*PATH_INFP')->to('CGI#rest_cgi' => { PATH_INFO => '' });
+ $r->any('/rest.cgi/*PATH_INFO')->to('CGI#rest_cgi' => { PATH_INFO => '' });
$r->any('/rest/*PATH_INFO')->to( 'CGI#rest_cgi' => { PATH_INFO => '' });
$r->any('/bug/:id')->to('CGI#show_bug_cgi');
$r->any('/extensions/BzAPI/bin/rest.cgi/*PATH_INFO')->to('CGI#bzapi_cgi');
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_/) {