summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-17 16:01:15 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-17 16:01:15 +0300
commit0954ea88937b1051c70fdae95b8955323c5d96cf (patch)
tree1969ec8a0a4343f3059069435d44ce8401820cc7
parenta5899a828367d0ff16534771c561e44ae7af632d (diff)
downloadrspamd-0954ea88937b1051c70fdae95b8955323c5d96cf.tar.gz
rspamd-0954ea88937b1051c70fdae95b8955323c5d96cf.zip
Fix '_' in emails.
-rw-r--r--src/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index de916188f..b24392056 100644
--- a/src/url.c
+++ b/src/url.c
@@ -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;