aboutsummaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-10-13 07:40:39 +0000
committerjustdave%syndicomm.com <>2001-10-13 07:40:39 +0000
commit5c8613183f5779686e739bc9a470c770cf8ff51d (patch)
tree6d50e8ac286f64ca475bb61ab7ee3c8e9acab6a4 /buglist.cgi
parent7084639bb653b1684638c272c4da3d62de1f702b (diff)
downloadbugs-5c8613183f5779686e739bc9a470c770cf8ff51d.tar
bugs-5c8613183f5779686e739bc9a470c770cf8ff51d.tar.gz
bugs-5c8613183f5779686e739bc9a470c770cf8ff51d.tar.bz2
bugs-5c8613183f5779686e739bc9a470c770cf8ff51d.tar.xz
bugs-5c8613183f5779686e739bc9a470c770cf8ff51d.zip
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 'buglist.cgi')
-rwxr-xr-xbuglist.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index c2eff0055..048d4582a 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -1329,7 +1329,8 @@ if ($serverpush) {
my $toolong = 0;
if ($::FORM{'order'}) {
my $q = url_quote($::FORM{'order'});
- print "Set-Cookie: LASTORDER=$q ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
+ my $cookiepath = Param("cookiepath");
+ print "Set-Cookie: LASTORDER=$q ; path=$cookiepath; expires=Sun, 30-Jun-2029 00:00:00 GMT\n";
}
if (length($buglist) < 4000) {
print "Set-Cookie: BUGLIST=$buglist\n\n";