diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-07 10:42:44 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-07 10:43:10 +0000 |
commit | c64d21ce4a095a605260c4a40d883d18b73b7b88 (patch) | |
tree | 0955596406be0cc8c8dc6cfbed631b69d631e2a1 /src/libserver/html.c | |
parent | b70c52278d831c822ff07b70b216f21f69ea3b66 (diff) | |
download | rspamd-c64d21ce4a095a605260c4a40d883d18b73b7b88.tar.gz rspamd-c64d21ce4a095a605260c4a40d883d18b73b7b88.zip |
[Fix] Temporary disable ignoring of bad HTML tags
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 6ab4d31be..e994e584b 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -761,7 +761,13 @@ rspamd_html_process_tag (rspamd_mempool_t *pool, struct html_content *hc, if (parent && (parent->flags & FL_IGNORE)) { /* Propagate ignore flag */ + /* + * XXX: disable propagation for now as we are missing some spam + * URLs + */ +#if 0 tag->flags |= FL_IGNORE; +#endif } g_node_append (*cur_level, nnode); @@ -770,7 +776,7 @@ rspamd_html_process_tag (rspamd_mempool_t *pool, struct html_content *hc, *cur_level = nnode; } - if (tag->flags & (CM_HEAD|CM_UNKNOWN|FL_BROKEN|FL_IGNORE)) { + if (tag->flags & (CM_HEAD|CM_UNKNOWN|FL_IGNORE)) { tag->flags |= FL_IGNORE; return FALSE; @@ -782,7 +788,7 @@ rspamd_html_process_tag (rspamd_mempool_t *pool, struct html_content *hc, /* Inline tag */ parent = (*cur_level)->data; - if (parent && (parent->flags & (CM_HEAD|CM_UNKNOWN|FL_BROKEN|FL_IGNORE))) { + if (parent && (parent->flags & (CM_HEAD|CM_UNKNOWN|FL_IGNORE))) { tag->flags |= FL_IGNORE; return FALSE; |