diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-23 13:14:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-23 14:45:27 +0100 |
commit | af7d84071a8efe9ac9112414613ee887daa7ca1b (patch) | |
tree | 9cc4f49cfafaf77a9d6c2bf2f7fb1ae093ce50cd /src/libserver/url.c | |
parent | 3db95ac8fe0b1b036fcef470d5244c9159a6b2ba (diff) | |
download | rspamd-af7d84071a8efe9ac9112414613ee887daa7ca1b.tar.gz rspamd-af7d84071a8efe9ac9112414613ee887daa7ca1b.zip |
[CritFix] Fix parsing of URLs in texts
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |