diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-04 08:49:51 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-04 08:49:51 +0000 |
commit | 3cd0e109a20b32ce0909326a70123a04a203f11f (patch) | |
tree | f29df57793f7d31e2f03b19ac62af3f23602224e | |
parent | 2b36e577a2d1f12663d0568d03fda78083b176e4 (diff) | |
download | drakx-3cd0e109a20b32ce0909326a70123a04a203f11f.tar drakx-3cd0e109a20b32ce0909326a70123a04a203f11f.tar.gz drakx-3cd0e109a20b32ce0909326a70123a04a203f11f.tar.bz2 drakx-3cd0e109a20b32ce0909326a70123a04a203f11f.tar.xz drakx-3cd0e109a20b32ce0909326a70123a04a203f11f.zip |
Verify that regexp matched
-rw-r--r-- | perl-install/http.pm | 1 |
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}; |