From b9c43bf4ea2e4902bff6edfa41baf1269fbf558f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 7 Mar 2017 11:59:16 +0000 Subject: [PATCH] [Fix] Fix setting class on style field Issue: #1492 --- src/lua/lua_html.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lua/lua_html.c b/src/lua/lua_html.c index 0ec561338..65fb99326 100644 --- a/src/lua/lua_html.c +++ b/src/lua/lua_html.c @@ -354,6 +354,7 @@ lua_html_push_block (lua_State *L, struct html_block *bl) if (bl->style.len > 0) { lua_pushstring (L, "style"); t = lua_newuserdata (L, sizeof (*t)); + rspamd_lua_setclass (L, "rspamd{text}", -1); t->start = bl->style.start; t->len = bl->style.len; t->flags = 0; -- 2.39.5