]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix setting class on style field
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 7 Mar 2017 11:59:16 +0000 (11:59 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 7 Mar 2017 11:59:16 +0000 (11:59 +0000)
Issue: #1492

src/lua/lua_html.c

index 0ec5613387dee1ec4b819c7a94cee215a43639bf..65fb99326726ad8c7dc307a7aa9f2dbfc4143991 100644 (file)
@@ -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;