diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-27 14:54:02 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-04-27 14:54:02 +0100 |
commit | 8475865ae0bf5bd46a8ed6f0decc7b1ddbdae47a (patch) | |
tree | d76270181705ea393d97cfe5d89dec175d515806 /src/libserver/html.c | |
parent | b637de0ad47c32ab12ec91638434b3ba9400152c (diff) | |
download | rspamd-8475865ae0bf5bd46a8ed6f0decc7b1ddbdae47a.tar.gz rspamd-8475865ae0bf5bd46a8ed6f0decc7b1ddbdae47a.zip |
[Fix] HTML: Fix `size` attribute processing
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 9 |
1 files 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 */ |