Commit 0ffaf78a authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 254351: Patch to add a cookiedomain parameter; patch by Eric…

Patch for bug 254351: Patch to add a cookiedomain parameter; patch by Eric Haszlakiewicz <erh+mozilla@nimenees.com>, r=kiko, a=myk.
parent 1ce889ad
......@@ -179,6 +179,10 @@ sub send_cookie {
# Add the default path in
unshift(@_, '-path' => Param('cookiepath'));
if (Param('cookiedomain'))
{
unshift(@_, '-domain' => Param('cookiedomain'));
}
# Use CGI::Cookie directly, because CGI.pm's |cookie| method gives the
# current value if there isn't a -value attribute, which happens when
......
......@@ -961,8 +961,6 @@ my $contenttype;
my $disp = "inline";
if ($format->{'extension'} eq "html") {
my $cookiepath = Param("cookiepath");
if ($order) {
$cgi->send_cookie(-name => 'LASTORDER',
-value => $order,
......
......@@ -358,6 +358,17 @@ sub find_languages {
},
{
name => 'cookiedomain',
desc => 'The domain for Bugzilla cookies. Normally blank. ' .
'If your website is at "www.foo.com", setting this to ' .
'".foo.com" will also allow bar.foo.com to access ' .
'Bugzilla cookies. This is useful if you have more than ' .
'one hostname pointing at the same web server, and you ' .
'want them to share the Bugzilla cookie.',
type => 't',
default => ''
},
{
name => 'cookiepath',
desc => 'Path, relative to your web document root, to which to restrict ' .
'Bugzilla cookies. Normally this is the URI portion of your URL ' .
......
......@@ -84,7 +84,6 @@ if (!$product_id) {
}
# Set cookies
my $cookiepath = Param("cookiepath");
if (exists $::FORM{'product'}) {
if (exists $::FORM{'version'}) {
$cgi->send_cookie(-name => "VERSION-$product",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment