]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Forgotten to save file
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Aug 2016 13:36:40 +0000 (14:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 5 Aug 2016 15:06:22 +0000 (16:06 +0100)
src/libserver/html.c

index ce388cf4921c02fa773c2c1fa5f13f49927163f8..f7d5c76431d37258b516ab9d34e7fc118844cf6e 100644 (file)
@@ -1649,6 +1649,15 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag,
                }
        }
 
+       /* Set bgcolor to the html bgcolor and font color to black as a last resort */
+       if (!bl->font_color.valid) {
+               bl->font_color.d.val = 0xffffffff;
+               bl->font_color.valid = TRUE;
+       }
+       if (!bl->background_color.valid) {
+               memcpy (&bl->background_color, &hc->bgcolor, sizeof (hc->bgcolor));
+       }
+
        if (hc->blocks == NULL) {
                hc->blocks = g_ptr_array_sized_new (64);
                rspamd_mempool_add_destructor (pool, rspamd_ptr_array_free_hard,