diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-17 16:10:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-06-17 16:10:07 +0100 |
commit | 47d9d69a597c834ab094d7f6b78fdb18998165ca (patch) | |
tree | 66cca30c67498301fc52aee6752800d3918fe7bb /src/url.c | |
parent | e62d106f21cf73ce14cfecd7f3ddf1e5ef1d6104 (diff) | |
download | rspamd-47d9d69a597c834ab094d7f6b78fdb18998165ca.tar.gz rspamd-47d9d69a597c834ab094d7f6b78fdb18998165ca.zip |
Fix url detection at the beginning of a message.
Diffstat (limited to 'src/url.c')
-rw-r--r-- | src/url.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1213,6 +1213,10 @@ url_tld_start (const gchar *begin, const gchar *end, const gchar *pos, url_match match->m_begin = p; return TRUE; } + else if (p == begin && p != pos) { + match->m_begin = p; + return TRUE; + } p --; } |