]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 261273: make column changing work with Sun ONE web server; fix by tmabbot...
authormyk%mozilla.org <>
Fri, 24 Sep 2004 07:53:26 +0000 (07:53 +0000)
committermyk%mozilla.org <>
Fri, 24 Sep 2004 07:53:26 +0000 (07:53 +0000)
colchange.cgi

index 03d5388bf66dffc3df06da2d86dc940d3514304a..dbaf40eeb88307fe72893abda62532a4e11db6f7 100755 (executable)
@@ -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'});
     }