Blame SOURCES/libwww-perl-6.19-Accept-proxy-URLs-with-IPv6-host-names.patch

cf93b4
From 572538753601755b4b6acace1d445bc8e1cc10c8 Mon Sep 17 00:00:00 2001
cf93b4
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
cf93b4
Date: Thu, 16 Feb 2017 14:00:57 +0100
cf93b4
Subject: [PATCH] Accept proxy URLs with IPv6 host names
cf93b4
MIME-Version: 1.0
cf93b4
Content-Type: text/plain; charset=UTF-8
cf93b4
Content-Transfer-Encoding: 8bit
cf93b4
cf93b4
<https://rt.cpan.org/Public/Bug/Display.html?id=94654>
cf93b4
cf93b4
Signed-off-by: Petr Písař <ppisar@redhat.com>
cf93b4
---
cf93b4
 lib/LWP/UserAgent.pm | 2 +-
cf93b4
 1 file changed, 1 insertion(+), 1 deletion(-)
cf93b4
cf93b4
diff --git a/lib/LWP/UserAgent.pm b/lib/LWP/UserAgent.pm
cf93b4
index ea03157..8549808 100644
cf93b4
--- a/lib/LWP/UserAgent.pm
cf93b4
+++ b/lib/LWP/UserAgent.pm
cf93b4
@@ -1039,7 +1039,7 @@ sub proxy
cf93b4
         my $url = shift;
cf93b4
         if (defined($url) && length($url)) {
cf93b4
             Carp::croak("Proxy must be specified as absolute URI; '$url' is not") unless $url =~ /^$URI::scheme_re:/;
cf93b4
-            Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://\w,;
cf93b4
+            Carp::croak("Bad http proxy specification '$url'") if $url =~ /^https?:/ && $url !~ m,^https?://(?:\w|\[),;
cf93b4
         }
cf93b4
         $self->{proxy}{$key} = $url;
cf93b4
         $self->set_my_handler("request_preprepare", \&_need_proxy)
cf93b4
-- 
cf93b4
2.7.4
cf93b4