aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-08 15:56:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-08-08 15:56:29 +0100
commitfd24c961ae6ed53edc14e34991a8e5f603307596 (patch)
treee168ebbb9735fc5289aa7ff0161f657f0168470a /src/libserver/html.c
parentd4dd679a8cba673e6d0beb2766380940325704ce (diff)
downloadrspamd-fd24c961ae6ed53edc14e34991a8e5f603307596.tar.gz
rspamd-fd24c961ae6ed53edc14e34991a8e5f603307596.zip
[Fix] Further fixes for white on white rule
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r--src/libserver/html.c6
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);