From fae2b431f77468b7b742b81de900a572ae871f37 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 15 Dec 2004 08:52:20 +0000 Subject: fix http directory not starting with a "/" (it was handled for stage1, but not for URLPREFIX given to stage2) --- mdk-stage1/network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mdk-stage1/network.c') 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); -- cgit v1.2.1