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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47d9d69a597c834ab094d7f6b78fdb18998165ca;p=thirdparty%2Frspamd.git Fix url detection at the beginning of a message. --- diff --git a/src/url.c b/src/url.c index b77c0373f0..9ddce38dd9 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 --; }