diff options
Diffstat (limited to 'perl-install/http.pm')
| -rw-r--r-- | perl-install/http.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/http.pm b/perl-install/http.pm index 6e522597a..8c19c104a 100644 --- a/perl-install/http.pm +++ b/perl-install/http.pm @@ -3,7 +3,6 @@ package http; # $Id$ use IO::Socket; use network::network; - my $sock; sub getFile { @@ -15,6 +14,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}; |
