From: Vsevolod Stakhov Date: Sat, 23 Apr 2016 12:14:34 +0000 (+0100) Subject: [CritFix] Fix parsing of URLs in texts X-Git-Tag: 1.2.6~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8cff490f651155eb1cae90d9aa1042261d62d285;p=rspamd.git [CritFix] Fix parsing of URLs in texts --- diff --git a/src/libserver/url.c b/src/libserver/url.c index 1c1a5c66e..9b7b3660e 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -2141,12 +2141,13 @@ rspamd_url_trie_generic_callback_common (struct rspamd_multipattern *mp, return 0; } - pos = text + match_start; + pos = text + match_pos; if (!rspamd_url_trie_is_match (matcher, pos, text + len)) { return 0; } + pos = cb->begin + match_start; m.pattern = matcher->pattern; m.prefix = matcher->prefix; m.add_prefix = FALSE;