aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-05 20:16:50 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-05 20:16:50 +0400
commit52c0b882c0b885a70d6e6af858c08771b6db3ea6 (patch)
tree4888830af84970ad53e6a190d99b28a07681e41c
parent9f7f743f9e4c5ee9755d8c4cd757b151daa15954 (diff)
downloadrspamd-52c0b882c0b885a70d6e6af858c08771b6db3ea6.tar.gz
rspamd-52c0b882c0b885a70d6e6af858c08771b6db3ea6.zip
* Fix parsing of some broken urls
-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, "/?"))