summaryrefslogtreecommitdiffstats
path: root/src/url.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-17 16:10:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-06-17 16:10:07 +0100
commit47d9d69a597c834ab094d7f6b78fdb18998165ca (patch)
tree66cca30c67498301fc52aee6752800d3918fe7bb /src/url.c
parente62d106f21cf73ce14cfecd7f3ddf1e5ef1d6104 (diff)
downloadrspamd-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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/url.c b/src/url.c
index b77c0373f..9ddce38dd 100644
--- a/src/url.c
+++ b/src/url.c
@@ -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 --;
}