summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSina Mashek <sina@mashek.xyz>2016-09-20 01:52:40 +0200
committerDylan William Hardison <dylan@hardison.net>2016-09-20 01:53:37 +0200
commite8a10abab85874cfcd749416aa52d9a5e8da4486 (patch)
treeb003616806aa68c87dab58c6bbd96a6aca682d8a
parent1647690e0a71cb9ee6102463e98265e4945289b2 (diff)
downloadbugzilla-e8a10abab85874cfcd749416aa52d9a5e8da4486.tar.gz
bugzilla-e8a10abab85874cfcd749416aa52d9a5e8da4486.tar.xz
Bug 1303896 - Can't locate object method "host" via package "URI::_generic" at Bugzilla/CGI.pm line 454.
r=dylan
-rw-r--r--Bugzilla/CGI.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index de4bd23d3..14a9a5720 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -451,7 +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'} = $uri->host if $uri->host;
+ $paramhash{'-domain'} = $uri->host if $uri->can('host') && $uri->host;
push(@{$self->{'Bugzilla_cookie_list'}}, $self->cookie(%paramhash));
}