summaryrefslogtreecommitdiffstats
path: root/Bugzilla/CGI.pm
diff options
context:
space:
mode:
authorSimon Green <mail@simon.green>2016-09-15 10:49:50 +0200
committerSimon Green <mail@simon.green>2016-09-15 10:49:50 +0200
commitc67b3b303adba379f3625aa88a61d5fb49bd319d (patch)
treeb0bac947454ab03659a93aa778d89ccae2d24e3c /Bugzilla/CGI.pm
parenta4601960dedb6012dd12e6a6fe47de7fc6af6965 (diff)
downloadbugzilla-c67b3b303adba379f3625aa88a61d5fb49bd319d.tar.gz
bugzilla-c67b3b303adba379f3625aa88a61d5fb49bd319d.tar.xz
Bug 399066 - Remove the 'cookiedomain' parameter
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r--Bugzilla/CGI.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index d43a68f93..de4bd23d3 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -451,8 +451,7 @@ sub send_cookie {
# Add the default path and the domain in.
my $uri = URI->new(Bugzilla->params->{urlbase});
$paramhash{'-path'} = $uri->path;
- $paramhash{'-domain'} = Bugzilla->params->{'cookiedomain'}
- if Bugzilla->params->{'cookiedomain'};
+ $paramhash{'-domain'} = $uri->host if $uri->host;
push(@{$self->{'Bugzilla_cookie_list'}}, $self->cookie(%paramhash));
}