summaryrefslogtreecommitdiffstats
path: root/colchange.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-10-13 09:40:39 +0200
committerjustdave%syndicomm.com <>2001-10-13 09:40:39 +0200
commit5c8613183f5779686e739bc9a470c770cf8ff51d (patch)
tree6d50e8ac286f64ca475bb61ab7ee3c8e9acab6a4 /colchange.cgi
parent7084639bb653b1684638c272c4da3d62de1f702b (diff)
downloadbugzilla-5c8613183f5779686e739bc9a470c770cf8ff51d.tar.gz
bugzilla-5c8613183f5779686e739bc9a470c770cf8ff51d.tar.xz
Fix for bug 19910: Bugzilla installs on the same server would interfere with each others' cookies. Cookies now have a path value that can be set to indicate which bugzilla install they belong to. Browsers will only send the cookie to the appropriate installation. The path can be set in the 'cookiepath' parameter in editparams.cgi.
Patch by Dave Lawrence <dkl@redhat.com> r= myk, justdave
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-xcolchange.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/colchange.cgi b/colchange.cgi
index f3521b7ad..456aeb499 100755
--- a/colchange.cgi
+++ b/colchange.cgi
@@ -75,8 +75,9 @@ if (defined $::FORM{'rememberedquery'}) {
}
my $list = join(" ", @collist);
my $urlbase = Param("urlbase");
- print "Set-Cookie: COLUMNLIST=$list ; path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
- print "Set-Cookie: SPLITHEADER=$::FORM{'splitheader'} ; path=/ ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
+ my $cookiepath = Param("cookiepath");
+ print "Set-Cookie: COLUMNLIST=$list ; path=$cookiepath ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
+ print "Set-Cookie: SPLITHEADER=$::FORM{'splitheader'} ; path=$cookiepath ; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
print "Refresh: 0; URL=buglist.cgi?$::FORM{'rememberedquery'}\n";
print "\n";
print "<META HTTP-EQUIV=Refresh CONTENT=\"1; URL=$urlbase"."buglist.cgi?$::FORM{'rememberedquery'}\">\n";