diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-03 18:59:32 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-03 18:59:32 +0400 |
commit | 27360c622541db1cf27dc5bef39524ca912b0e3d (patch) | |
tree | 7dd4d737853d4fe393f8dfaa094a24da204997a2 /src/html.c | |
parent | ad56efc14e371b6a452c1ccc46aa68d800125468 (diff) | |
download | rspamd-27360c622541db1cf27dc5bef39524ca912b0e3d.tar.gz rspamd-27360c622541db1cf27dc5bef39524ca912b0e3d.zip |
* Add autolearn config options
* Fix parsing of invalid urls in html parser
* Add ability to specify symbols in view parameter as comma-separated list
Diffstat (limited to 'src/html.c')
-rw-r--r-- | src/html.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html.c b/src/html.c index 5b3552c7f..bdd82681f 100644 --- a/src/html.c +++ b/src/html.c @@ -303,7 +303,7 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i url = memory_pool_alloc (task->task_pool, sizeof (struct uri)); rc = parse_uri (url, url_text, task->task_pool); - if (rc != URI_ERRNO_EMPTY && rc != URI_ERRNO_NO_HOST) { + if (rc != URI_ERRNO_EMPTY && rc != URI_ERRNO_NO_HOST && url->hostlen != 0) { if (part->html_urls && g_tree_lookup (part->html_urls, url_text) == NULL) { g_tree_insert (part->html_urls, url_text, url); task->urls = g_list_prepend (task->urls, url); |