From 90c97fa2d0d6937544205ea9ee72779753a969e6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 22 Jun 2004 14:02:33 +0000 Subject: [PATCH] Allow empty host name for unknown URL schemes. `foo:///bar' should be considered OK now. --- lib/url.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/url.c b/lib/url.c index cb577cb1..8475a85f 100644 --- a/lib/url.c +++ b/lib/url.c @@ -368,8 +368,7 @@ url_normalize(struct url *u, struct url *b) int err; /* Basic checks */ - if (url_proto_path_flags[u->protoid] && !u->host || - u->host && !*u->host || + if (url_proto_path_flags[u->protoid] && (!u->host || !*u->host) || !u->host && u->user || !u->user && u->pass || !u->rest) -- 2.39.2