summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);