From 8475865ae0bf5bd46a8ed6f0decc7b1ddbdae47a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 27 Apr 2019 14:54:02 +0100 Subject: [PATCH] [Fix] HTML: Fix `size` attribute processing --- src/libserver/html.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/libserver/html.c b/src/libserver/html.c index cc74d676e..ff3053de7 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -2339,11 +2339,10 @@ rspamd_html_process_block_tag (rspamd_mempool_t *pool, struct html_tag *tag, msg_debug_html ("got class: %s", bl->class); break; case RSPAMD_HTML_COMPONENT_SIZE: - fstr.begin = (gchar *) comp->start; - fstr.len = comp->len; - rspamd_html_process_color (comp->start, comp->len, - &bl->font_color); - msg_debug_html ("got color: %xd", bl->font_color.d.val); + /* Not supported by html5 */ + /* FIXME maybe support it */ + bl->font_size = 16; + msg_debug_html ("got size: %*s", (gint)comp->len, comp->start); break; default: /* NYI */ -- 2.39.5