diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-26 16:12:02 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-26 16:12:02 +0000 |
commit | e56564c8b802166106d59fbd8f03103da5adb22c (patch) | |
tree | c49dd8428ed5e50c3669ad46034c415c5c20cee4 | |
parent | cbfa72954e882cfa8ad233d2b2d791526bc85f73 (diff) | |
download | rspamd-e56564c8b802166106d59fbd8f03103da5adb22c.tar.gz rspamd-e56564c8b802166106d59fbd8f03103da5adb22c.zip |
Refuse empty emails in urls detection as well.
-rw-r--r-- | src/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |