From: Vsevolod Stakhov Date: Tue, 26 Nov 2013 16:12:02 +0000 (+0000) Subject: Refuse empty emails in urls detection as well. X-Git-Tag: 0.6.0~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e56564c8b802166106d59fbd8f03103da5adb22c;p=rspamd.git Refuse empty emails in urls detection as well. --- diff --git a/src/url.c b/src/url.c index 927b61889..d1a85b32a 100644 --- a/src/url.c +++ b/src/url.c @@ -1444,7 +1444,7 @@ url_email_start (const gchar *begin, const gchar *end, const gchar *pos, url_mat while (p > begin && (is_domain (*p) || *p == '.' || *p == '_')) { p --; } - if (!is_domain (*p)) { + if (!is_domain (*p) && p != pos - 1) { match->m_begin = p + 1; return TRUE; }