From: Vsevolod Stakhov Date: Mon, 7 Mar 2016 10:42:44 +0000 (+0000) Subject: [Fix] Temporary disable ignoring of bad HTML tags X-Git-Tag: 1.2.0~108 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c64d21ce4a095a605260c4a40d883d18b73b7b88;p=rspamd.git [Fix] Temporary disable ignoring of bad HTML tags --- 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;