summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/http.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/http.pm b/perl-install/http.pm
index 6e522597a..bce912120 100644
--- a/perl-install/http.pm
+++ b/perl-install/http.pm
@@ -15,6 +15,7 @@ sub getFile {
# can be used for ftp urls (with http proxy)
my ($host, $port, $path) = $url =~ m,^(?:http|ftp)://([^/:]+)(?::(\d+))?(/\S*)?$,;
+ defined $host or return undef;
my $use_http_proxy = $ENV{PROXY} && $ENV{PROXYPORT};