]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Temporary disable ignoring of bad HTML tags
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 7 Mar 2016 10:42:44 +0000 (10:42 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 7 Mar 2016 10:43:10 +0000 (10:43 +0000)
src/libserver/html.c

index 6ab4d31be3fac4d5d40951d74f6a84ac9088a261..e994e584ba14decf36d2959dab3b5c3fc70d3275 100644 (file)
@@ -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;