diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-23 15:01:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-23 15:01:02 +0100 |
commit | 71160984b699c099626d694fab886edb583551fa (patch) | |
tree | f9900ec0bd1705701bc2fddcea197ead5ee04ed6 /src/libserver | |
parent | 9ab1bcfc44646ee5403247a2f2a705e47a243778 (diff) | |
download | rspamd-71160984b699c099626d694fab886edb583551fa.tar.gz rspamd-71160984b699c099626d694fab886edb583551fa.zip |
[CritFix] Fix some more URL detector issues
Diffstat (limited to 'src/libserver')
-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 9b7b3660e..fb725ed18 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1796,7 +1796,8 @@ url_tld_end (struct url_callback_data *cb, const gchar *p; /* A url must be finished by tld, so it must be followed by space character */ - p = pos + strlen (match->pattern); + p = pos + match->m_len; + if (p == cb->end || g_ascii_isspace (*p) || *p == ',') { match->m_len = p - match->m_begin; return TRUE; |