From 21e7b9bc06b729ea5dc1a3de5510a8ba0be62c8d Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Fri, 24 Sep 2004 07:53:26 +0000 Subject: [PATCH] Fix for bug 261273: make column changing work with Sun ONE web server; fix by tmabbott@hbs.edu; r,a=justdave --- colchange.cgi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/colchange.cgi b/colchange.cgi index 8d3ee49da9..0832381f83 100755 --- a/colchange.cgi +++ b/colchange.cgi @@ -107,10 +107,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'}); } -- 2.47.2