]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1303896 - Can't locate object method "host" via package "URI::_generic" at Bugzil...
authorSina Mashek <sina@mashek.xyz>
Mon, 19 Sep 2016 23:52:40 +0000 (19:52 -0400)
committerDylan William Hardison <dylan@hardison.net>
Mon, 19 Sep 2016 23:53:37 +0000 (19:53 -0400)
r=dylan

Bugzilla/CGI.pm

index de4bd23d31212dbeebaf5e693bea3ed9fbf47924..14a9a5720fa46691a7a3741b65184783bbbb91e6 100644 (file)
@@ -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));
 }