diff options
| author | Stefan Eßer <se@FreeBSD.org> | 2001-07-28 21:28:14 +0000 |
|---|---|---|
| committer | Stefan Eßer <se@FreeBSD.org> | 2001-07-28 21:28:14 +0000 |
| commit | 73b3e4df87e441e3b457bbc95d9e18ba85c24107 (patch) | |
| tree | 7a1254d2f1ad2c59acf9936d98b82f0e9a71aeef /lib/libfetch/fetch.c | |
| parent | f7ed20a0bc850204765ef6cf9e85617d8cc882a0 (diff) | |
Notes
Diffstat (limited to 'lib/libfetch/fetch.c')
| -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 963557b34b90..1787dbb05915 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, "/@"); |
