summaryrefslogtreecommitdiffstats
path: root/perl-install/http.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-04 08:49:51 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-08-04 08:49:51 +0000
commit3cd0e109a20b32ce0909326a70123a04a203f11f (patch)
treef29df57793f7d31e2f03b19ac62af3f23602224e /perl-install/http.pm
parent2b36e577a2d1f12663d0568d03fda78083b176e4 (diff)
downloaddrakx-backup-do-not-use-3cd0e109a20b32ce0909326a70123a04a203f11f.tar
drakx-backup-do-not-use-3cd0e109a20b32ce0909326a70123a04a203f11f.tar.gz
drakx-backup-do-not-use-3cd0e109a20b32ce0909326a70123a04a203f11f.tar.bz2
drakx-backup-do-not-use-3cd0e109a20b32ce0909326a70123a04a203f11f.tar.xz
drakx-backup-do-not-use-3cd0e109a20b32ce0909326a70123a04a203f11f.zip
Verify that regexp matched
Diffstat (limited to 'perl-install/http.pm')
-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};