diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-12-15 08:52:20 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-12-15 08:52:20 +0000 |
commit | fae2b431f77468b7b742b81de900a572ae871f37 (patch) | |
tree | a2e6f748ca246f4de7fd7b197f061657b07f03ff | |
parent | 9f0a9437f138bbe09c991f27e553c9c2752a4692 (diff) | |
download | drakx-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.c | 2 |
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); |