diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-12-01 17:09:41 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-12-01 17:09:41 +0300 |
commit | cbc577df0ee6ec8855913442cfe0efe3a184e725 (patch) | |
tree | 21334c1fedfeadabaa788bc5ec6d84889ecdbd18 /src/html.c | |
parent | 0382dce3ed7eaa606958f34419ec3290289de643 (diff) | |
download | rspamd-cbc577df0ee6ec8855913442cfe0efe3a184e725.tar.gz rspamd-cbc577df0ee6ec8855913442cfe0efe3a184e725.zip |
Detect mailto: inside <a> and <img> tags.
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c index 1747c7ce2..42ed9dbfa 100644 --- a/src/html.c +++ b/src/html.c @@ -783,7 +783,8 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i if (g_ascii_strncasecmp (url_text, "http://", sizeof ("http://") - 1) != 0 && g_ascii_strncasecmp (url_text, "www", sizeof ("www") - 1) != 0 && - g_ascii_strncasecmp (url_text, "ftp://", sizeof ("ftp://") - 1) != 0) { + g_ascii_strncasecmp (url_text, "ftp://", sizeof ("ftp://") - 1) != 0 && + g_ascii_strncasecmp (url_text, "mailto:", sizeof ("mailto:") - 1) != 0) { return; } |