From: Vsevolod Stakhov Date: Sat, 27 Apr 2019 13:54:02 +0000 (+0100) Subject: [Fix] HTML: Fix `size` attribute processing X-Git-Tag: 1.9.3~61 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8475865ae0bf5bd46a8ed6f0decc7b1ddbdae47a;p=rspamd.git [Fix] HTML: Fix `size` attribute processing --- 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 */