aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-23 12:38:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-23 12:38:27 +0100
commit627cdb74b5e027184583a0ebe4b0eb610e5c7194 (patch)
tree9967c79d33862a7825c8d1cb121eaa3d881bce61 /src/libserver/html.c
parent8dd0d7abaad97d9845f66f7ff814256dd577e072 (diff)
downloadrspamd-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.c2
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;