Subject: | URI 1.60 authority |
Date: | Thu, 20 Jun 2013 14:29:15 +1000 |
To: | bug-URI [...] rt.cpan.org |
From: | Sean Miller <fastbean_au [...] yahoo.com.au> |
The URI::_generic->authority method does not handle a URI using the
http_proxy format where the password contains a / ? or # character, e.g.:
Show quoted text
>perl -e "use URI;my $p=URI->new('http://user.name:abc#
123@proxy.server.com:8000');print
join(qq{\n},$p->host,$p->port,$p->userinfo)"
user.name:abc
80
This in turn effects the host, port and userinfo methods and flows on
through a number of other modules.
sub authority
{
my $self = shift;
$$self =~ m,^((?:$URI::scheme_re:)?)(?://([^/?\#]*))?(.*)$,os or die;