diff options
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c index 3fb17d4e6..b121006bb 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1545,8 +1545,10 @@ rspamd_html_process_style (rspamd_mempool_t *pool, struct html_block *bl, rspamd_html_process_color (c, p - c, &bl->font_color); msg_debug_pool ("got color: %xd", bl->font_color.d.val); } - if (klen == 16 && g_ascii_strncasecmp (key, - "background-color", 16) == 0) { + else if ((klen == 16 && g_ascii_strncasecmp (key, + "background-color", 16) == 0) || + (klen == 10 && g_ascii_strncasecmp (key, + "background", 10) == 0)) { rspamd_html_process_color (c, p - c, &bl->background_color); msg_debug_pool ("got bgcolor: %xd", bl->background_color.d.val); |