Commit 69945a49 authored by jouni%heikniemi.net's avatar jouni%heikniemi.net

Bug 214466: Cookie setting w/ 3xx redirect broken on IIS - make colchange use…

Bug 214466: Cookie setting w/ 3xx redirect broken on IIS - make colchange use Refresh HTTP header (on IIS only). r=justdave,a=justdave
parent 7093be0b
......@@ -104,7 +104,17 @@ if (defined $::FORM{'rememberedquery'}) {
$vars->{'message'} = "change_columns";
$vars->{'redirect_url'} = "buglist.cgi?$::FORM{'rememberedquery'}";
print $cgi->redirect($vars->{'redirect_url'});
# If we're running on Microsoft IIS, using cgi->redirect discards
# the Set-Cookie lines -- workaround is to use the old-fashioned
# redirection mechanism. See bug 214466 for details.
if ($ENV{'SERVER_SOFTWARE'} =~ /Microsoft-IIS/) {
print $cgi->header(-type => "text/html",
-refresh => "0; URL=$vars->{'redirect_url'}");
} else {
print $cgi->redirect($vars->{'redirect_url'});
}
$template->process("global/message.html.tmpl", $vars)
|| ThrowTemplateError($template->error());
exit;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment