From: Vsevolod Stakhov Date: Mon, 5 Jul 2010 16:16:50 +0000 (+0400) Subject: * Fix parsing of some broken urls X-Git-Tag: 0.3.1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c0b882c0b885a70d6e6af858c08771b6db3ea6;p=thirdparty%2Frspamd.git * Fix parsing of some broken urls --- diff --git a/src/url.c b/src/url.c index 277b234b86..1ecc9c4f01 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, "/?"))