summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r--lib/libfetch/fetch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c
index 963557b..1787dbb 100644
--- a/lib/libfetch/fetch.c
+++ b/lib/libfetch/fetch.c
@@ -319,7 +319,8 @@ fetchParseURL(const char *URL)
p = URL;
}
if (!*URL || *URL == '/' || *URL == '.' ||
- (u->scheme[0] == '\0' && strchr(URL, '/') == NULL))
+ (u->scheme[0] == '\0' &&
+ strchr(URL, '/') == NULL && strchr(URL, ':') == NULL))
goto nohost;
p = strpbrk(URL, "/@");
OpenPOWER on IntegriCloud