commit 8475865: [Fix] HTML: Fix `size` attribute processing

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Apr 27 13:56:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-27 14:54:02 +0100
URL: https://github.com/rspamd/rspamd/commit/8475865ae0bf5bd46a8ed6f0decc7b1ddbdae47a (HEAD -> master)

[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 */


More information about the Commits mailing list