summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-12-15 08:52:20 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-12-15 08:52:20 +0000
commitfae2b431f77468b7b742b81de900a572ae871f37 (patch)
treea2e6f748ca246f4de7fd7b197f061657b07f03ff
parent9f0a9437f138bbe09c991f27e553c9c2752a4692 (diff)
downloaddrakx-fae2b431f77468b7b742b81de900a572ae871f37.tar
drakx-fae2b431f77468b7b742b81de900a572ae871f37.tar.gz
drakx-fae2b431f77468b7b742b81de900a572ae871f37.tar.bz2
drakx-fae2b431f77468b7b742b81de900a572ae871f37.tar.xz
drakx-fae2b431f77468b7b742b81de900a572ae871f37.zip
fix http directory not starting with a "/" (it was handled for stage1, but not for URLPREFIX given to stage2)
-rw-r--r--mdk-stage1/network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index d47a39650..5f341640c 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -1112,7 +1112,7 @@ enum return_type http_prepare(void)
}
add_to_env("METHOD", "http");
- sprintf(location_full, "http://%s%s", answers[0], answers[1]);
+ sprintf(location_full, "http://%s%s%s", answers[0], answers[1][0] == '/' ? "" : "/", answers[1]);
add_to_env("URLPREFIX", location_full);
if (!streq(http_proxy_host, ""))
add_to_env("PROXY", http_proxy_host);