Skip to content

Commit

Permalink
Bug 1303896 - Can't locate object method "host" via package "URI::_ge…
Browse files Browse the repository at this point in the history
…neric" at Bugzilla/CGI.pm line 454.

r=dylan
  • Loading branch information
Sina Mashek authored and dylanwh committed Sep 19, 2016
1 parent 1647690 commit e8a10ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bugzilla/CGI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit e8a10ab

Please sign in to comment.