diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-17 16:01:15 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-17 16:01:15 +0300 |
commit | 0954ea88937b1051c70fdae95b8955323c5d96cf (patch) | |
tree | 1969ec8a0a4343f3059069435d44ce8401820cc7 | |
parent | a5899a828367d0ff16534771c561e44ae7af632d (diff) | |
download | rspamd-0954ea88937b1051c70fdae95b8955323c5d96cf.tar.gz rspamd-0954ea88937b1051c70fdae95b8955323c5d96cf.zip |
Fix '_' in emails.
-rw-r--r-- | src/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1146,7 +1146,7 @@ url_email_end (const gchar *begin, const gchar *end, const gchar *pos, url_match p = pos + strlen (match->pattern); - while (p < end && (is_domain (*p) || (*p == '.' && p + 1 < end && is_domain (*(p + 1))))) { + while (p < end && (is_domain (*p) || *p == '_' || (*p == '.' && p + 1 < end && is_domain (*(p + 1))))) { p ++; } match->m_len = p - match->m_begin; |