aboutsummaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/url.c')
-rw-r--r--src/url.c2
1 files changed, 1 insertions, 1 deletions
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, "/?"))