diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-04-04 05:05:04 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-07-31 18:57:16 +0200 |
commit | 6df945da5900da86203e0527816690cb1d52c574 (patch) | |
tree | 2bd1fe5aa1aac5f239c32328eece0e3af400feba /colchange.cgi | |
parent | 8b75f8e691309ec68e5de1cbdf77f6e8b2b305f8 (diff) | |
download | bugzilla-6df945da5900da86203e0527816690cb1d52c574.tar.gz bugzilla-6df945da5900da86203e0527816690cb1d52c574.tar.xz |
Bug 1455495 - Replace apache with Mojolicious
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-x | colchange.cgi | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/colchange.cgi b/colchange.cgi index d77782bec..46d25ecdf 100755 --- a/colchange.cgi +++ b/colchange.cgi @@ -136,26 +136,12 @@ if (defined $cgi->param('rememberedquery')) { $params->param('columnlist', join(",", @collist)); $vars->{'redirect_url'} = "buglist.cgi?".$params->query_string(); - # If we're running on Microsoft IIS, $cgi->redirect discards # the Set-Cookie lines. In mod_perl, $cgi->redirect with cookies # causes the page to be rendered as text/plain. # Workaround is to use the old-fashioned redirection mechanism. # See bug 214466 and bug 376044 for details. - if ($ENV{'MOD_PERL'} - || $ENV{'SERVER_SOFTWARE'} =~ /Microsoft-IIS/ - || $ENV{'SERVER_SOFTWARE'} =~ /Sun ONE Web/) - { - print $cgi->header(-type => "text/html", - -refresh => "0; URL=$vars->{'redirect_url'}"); - } - else { - print $cgi->redirect($vars->{'redirect_url'}); - exit; - } - - $template->process("global/message.html.tmpl", $vars) - || ThrowTemplateError($template->error()); + print $cgi->redirect($vars->{'redirect_url'}); exit; } |