diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-05 20:16:50 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-05 20:16:50 +0400 |
commit | 52c0b882c0b885a70d6e6af858c08771b6db3ea6 (patch) | |
tree | 4888830af84970ad53e6a190d99b28a07681e41c | |
parent | 9f7f743f9e4c5ee9755d8c4cd757b151daa15954 (diff) | |
download | rspamd-52c0b882c0b885a70d6e6af858c08771b6db3ea6.tar.gz rspamd-52c0b882c0b885a70d6e6af858c08771b6db3ea6.zip |
* Fix parsing of some broken urls
-rw-r--r-- | src/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, "/?")) |