Subject: | _get_ua makes invalid call to LWP::UserAgent::new |
CGI::SSI.pm line 308 reads
my $ua = LWP::UserAgent->new($ENV{HTTP_USER_AGENT} || ());
But LWP::UserAgent::new (like HTTP::Cookies::new) takes a hash, not a
list of values.
This can easily be fixed by code like
my %conf;
$conf{agent} = $ENV{HTTP_USER_AGENT} if $ENV{HTTP_USER_AGENT}
my $ua = LWP::UserAgent->new(%conf);
but it is not serious because LWP::UserAgent::new has a default agent
anyway.
Furthermore, it is not important because _include_virtual does not, and
cannot, work with remote URL's (see separate RT) - for which reason I
doubt that this offending code has ever been used at all.