diff options
author | justdave%syndicomm.com <> | 2001-10-13 07:40:39 +0000 |
---|---|---|
committer | justdave%syndicomm.com <> | 2001-10-13 07:40:39 +0000 |
commit | 5c8613183f5779686e739bc9a470c770cf8ff51d (patch) | |
tree | 6d50e8ac286f64ca475bb61ab7ee3c8e9acab6a4 /CGI.pl | |
parent | 7084639bb653b1684638c272c4da3d62de1f702b (diff) | |
download | bugs-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 'CGI.pl')
-rw-r--r-- | CGI.pl | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -985,23 +985,18 @@ sub confirm_login { my $logincookie = FetchOneColumn(); $::COOKIE{"Bugzilla_logincookie"} = $logincookie; - print "Set-Cookie: Bugzilla_login=$enteredlogin ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"; - print "Set-Cookie: Bugzilla_logincookie=$logincookie ; path=/; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"; - - # This next one just cleans out any old bugzilla passwords that may - # be sitting around in the cookie files, from the bad old days when - # we actually stored the password there. - print "Set-Cookie: Bugzilla_password= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT\n"; + my $cookiepath = Param("cookiepath"); + print "Set-Cookie: Bugzilla_login=$enteredlogin ; path=$cookiepath; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"; + print "Set-Cookie: Bugzilla_logincookie=$logincookie ; path=$cookiepath; expires=Sun, 30-Jun-2029 00:00:00 GMT\n"; } - my $loginok = quietly_check_login(); if ($loginok != 1) { if ($::disabledreason) { - print "Set-Cookie: Bugzilla_login= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT -Set-Cookie: Bugzilla_logincookie= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT -Set-Cookie: Bugzilla_password= ; path=/; expires=Sun, 30-Jun-80 00:00:00 GMT + my $cookiepath = Param("cookiepath"); + print "Set-Cookie: Bugzilla_login= ; path=$cookiepath; expires=Sun, 30-Jun-80 00:00:00 GMT +Set-Cookie: Bugzilla_logincookie= ; path=$cookiepath; expires=Sun, 30-Jun-80 00:00:00 GMT Content-type: text/html "; |