From: Vsevolod Stakhov Date: Mon, 17 Jun 2013 15:10:07 +0000 (+0100) Subject: Fix url detection at the beginning of a message. X-Git-Tag: 0.6.0~287 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=47d9d69a597c834ab094d7f6b78fdb18998165ca;p=rspamd.git Fix url detection at the beginning of a message. --- 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 --; }