From 52c0b882c0b885a70d6e6af858c08771b6db3ea6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 5 Jul 2010 20:16:50 +0400 Subject: [PATCH] * Fix parsing of some broken urls --- src/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/url.c b/src/url.c index 277b234b8..1ecc9c4f0 100644 --- a/src/url.c +++ b/src/url.c @@ -769,7 +769,7 @@ parse_uri (struct uri *uri, unsigned char *uristring, memory_pool_t * pool) /* Possibly skip auth part */ host_end = prefix_end + strcspn (prefix_end, "@"); - if (prefix_end + strcspn (prefix_end, "/") > host_end && *host_end) { /* we have auth info here */ + if (prefix_end + strcspn (prefix_end, "/?") > host_end && *host_end) { /* we have auth info here */ /* Allow '@' in the password component */ while (strcspn (host_end + 1, "@") < strcspn (host_end + 1, "/?")) -- 2.39.5