diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libfetch/fetch.c | 3 |
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, "/@"); |