From ca30742650219ef9146f85f6afe8ac5abbde8aa7 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 5 Mar 2002 15:19:05 +0000 Subject: fix bug in generating automatic stage1 params for http --- perl-install/install_any.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index f94756cdd..934e7aa09 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -838,7 +838,7 @@ sub generate_automatic_stage1_params { my @ks = "method:$o->{method}"; if ($o->{method} =~ /http/) { - "$ENV{URLPREFIX}" =~ m|http://(.*)/(.*)| or die; + "$ENV{URLPREFIX}" =~ m|http://([^/:]+)/(.*)| or die; push @ks, "server:$1", "directory:$2"; } elsif ($o->{method} =~ /ftp/) { push @ks, "server:$ENV{HOST}", "directory:$ENV{PREFIX}", "user:$ENV{LOGIN}", "pass:$ENV{PASSWORD}"; -- cgit v1.2.1