diff options
author | 2017-03-13 17:08:31 +0000 | |
---|---|---|
committer | 2017-03-13 17:08:31 +0000 | |
commit | fb7012708c78e676b56dfd25a755277b62211004 (patch) | |
tree | 0d3fec4a0ab60bf07d28b1e98f9f3d1a02a4057b | |
parent | Clarify iked.conf(5) manpage in regards to IP compression. (diff) | |
download | wireguard-openbsd-fb7012708c78e676b56dfd25a755277b62211004.tar.xz wireguard-openbsd-fb7012708c78e676b56dfd25a755277b62211004.zip |
Remove leading slashes from response to ensure a proper url.
Feedback and OK halex@ tb@
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 2546d68cb42..63e2c2105a4 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sub,v 1.987 2017/03/10 22:34:09 rpe Exp $ +# $OpenBSD: install.sub,v 1.988 2017/03/13 17:08:31 rpe Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -1635,7 +1635,7 @@ install_http() { # Set HTTP_DIR to a default path in case it was not defined yet. : ${HTTP_DIR:=pub/OpenBSD/$HTTP_SETDIR} ask_until "Server directory?" "${resp:-$HTTP_DIR}" - HTTP_DIR=$resp + HTTP_DIR=${resp##+(/)} _url_base="$_http_proto://$HTTP_SERVER/$HTTP_DIR" # Fetch SHA256.sig to create the list of files to select from. |