aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-01 15:30:14 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-01 15:30:14 +0000
commit7a820f15c13ead1dc2675c42296bcf80bb424098 (patch)
treea1b969d111d6bcab6f7d0169b7338e673f446358 /src/lua/lua_html.c
parenta144260321074948e012e621020515dbf448f85a (diff)
downloadrspamd-7a820f15c13ead1dc2675c42296bcf80bb424098.tar.gz
rspamd-7a820f15c13ead1dc2675c42296bcf80bb424098.zip
[Feature] Track visibility of HTML elements
Diffstat (limited to 'src/lua/lua_html.c')
-rw-r--r--src/lua/lua_html.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lua/lua_html.c b/src/lua/lua_html.c
index 1766d8f2f..b680dae4e 100644
--- a/src/lua/lua_html.c
+++ b/src/lua/lua_html.c
@@ -318,7 +318,7 @@ lua_html_push_block (lua_State *L, struct html_block *bl)
struct rspamd_lua_text *t;
struct html_tag **ptag;
- lua_createtable (L, 0, 4);
+ lua_createtable (L, 0, 5);
if (bl->tag) {
lua_pushstring (L, "tag");
@@ -359,6 +359,10 @@ lua_html_push_block (lua_State *L, struct html_block *bl)
t->flags = 0;
lua_settable (L, -3);
}
+
+ lua_pushstring (L, "visible");
+ lua_pushboolean (L, bl->visible);
+ lua_settable (L, -3);
}
static gint