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

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