From: Vsevolod Stakhov Date: Fri, 5 Aug 2016 13:36:40 +0000 (+0100) Subject: [Minor] Forgotten to save file X-Git-Tag: 1.3.2~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ebb6979c7ee3e444c03f00ae04d0e63bcf9e53aa;p=rspamd.git [Minor] Forgotten to save file --- diff --git a/src/libserver/html.c b/src/libserver/html.c index ce388cf49..f7d5c7643 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -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,