diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-07 11:59:16 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-07 11:59:16 +0000 |
commit | b9c43bf4ea2e4902bff6edfa41baf1269fbf558f (patch) | |
tree | f52532ac8c2951676bccdc2e81a2749274b0decf /src/lua/lua_html.c | |
parent | 207375a0f80a29ca6aac64a0b2f164fd39ac2799 (diff) | |
download | rspamd-b9c43bf4ea2e4902bff6edfa41baf1269fbf558f.tar.gz rspamd-b9c43bf4ea2e4902bff6edfa41baf1269fbf558f.zip |
[Fix] Fix setting class on style field
Issue: #1492
Diffstat (limited to 'src/lua/lua_html.c')
-rw-r--r-- | src/lua/lua_html.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |