From 630fa8eb58a9e166983903c8cc977b8c40a42250 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Fri, 18 Mar 2011 10:45:57 +0000 Subject: [PATCH] patch: uri_decode() -- handle empty username --- src/uri/uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uri/uri.c b/src/uri/uri.c index c2cece7..433c34e 100644 --- a/src/uri/uri.c +++ b/src/uri/uri.c @@ -110,7 +110,7 @@ int uri_decode(struct uri *uri, const struct pl *pl) memset(uri, 0, sizeof(*uri)); if (0 == re_regex(pl->p, pl->l, - "[^:]+:[^@:]+[:]*[^@]*@[^;? ]+[^?]*[^]*", + "[^:]+:[^@:]*[:]*[^@]*@[^;? ]+[^?]*[^]*", &uri->scheme, &uri->user, NULL, &uri->password, &hostport, &uri->params, &uri->headers)) {