diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-09-23 12:38:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-09-23 12:38:27 +0100 |
commit | 627cdb74b5e027184583a0ebe4b0eb610e5c7194 (patch) | |
tree | 9967c79d33862a7825c8d1cb121eaa3d881bce61 /src/libserver/html.c | |
parent | 8dd0d7abaad97d9845f66f7ff814256dd577e072 (diff) | |
download | rspamd-627cdb74b5e027184583a0ebe4b0eb610e5c7194.tar.gz rspamd-627cdb74b5e027184583a0ebe4b0eb610e5c7194.zip |
[Fix] Deal with URLs with no slashes after protocol
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 3f479937a..905615794 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1497,7 +1497,7 @@ rspamd_html_process_url (rspamd_mempool_t *pool, const gchar *start, guint len, } } - if (rspamd_substring_search (s, len, "://", 3) == (-1)) { + if (memchr (s, ':', len) == NULL) { /* We have no prefix */ dlen += sizeof ("http://") - 1; no_prefix = TRUE; |