From: myk%mozilla.org <> Date: Fri, 24 Sep 2004 07:53:26 +0000 (+0000) Subject: Fix for bug 261273: make column changing work with Sun ONE web server; fix by tmabbot... X-Git-Tag: bugzilla-2.19.1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=864e9a127ad2c7b9e8d11e8cc557462e470651f0;p=thirdparty%2Fbugzilla.git Fix for bug 261273: make column changing work with Sun ONE web server; fix by tmabbott@hbs.edu; r,a=justdave --- diff --git a/colchange.cgi b/colchange.cgi index 03d5388bf6..dbaf40eeb8 100755 --- a/colchange.cgi +++ b/colchange.cgi @@ -112,10 +112,13 @@ if (defined $cgi->param('rememberedquery')) { # 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/) { + if ($ENV{'SERVER_SOFTWARE'} =~ /Microsoft-IIS/ + || $ENV{'SERVER_SOFTWARE'} =~ /Sun ONE Web/) + { print $cgi->header(-type => "text/html", -refresh => "0; URL=$vars->{'redirect_url'}"); - } else { + } + else { print $cgi->redirect($vars->{'redirect_url'}); }