From: Sina Mashek Date: Mon, 19 Sep 2016 23:52:40 +0000 (-0400) Subject: Bug 1303896 - Can't locate object method "host" via package "URI::_generic" at Bugzil... X-Git-Tag: release-5.1.2~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e8a10abab85874cfcd749416aa52d9a5e8da4486;p=thirdparty%2Fbugzilla.git Bug 1303896 - Can't locate object method "host" via package "URI::_generic" at Bugzilla/CGI.pm line 454. r=dylan --- diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index de4bd23d31..14a9a5720f 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)); }