aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-26 14:08:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-26 14:08:28 +0100
commitde1229f674bc8896a0373d030d3ead0c98f0e731 (patch)
tree99506d5b5bee45ff1ebce6eabc70d3c09ba8e90c /src/lua/lua_html.c
parent5d6bd253f7bf7804cb0b52485c465324cfc42b7b (diff)
downloadrspamd-de1229f674bc8896a0373d030d3ead0c98f0e731.tar.gz
rspamd-de1229f674bc8896a0373d030d3ead0c98f0e731.zip
[Feature] Allow to show HTML structure on extraction
Diffstat (limited to 'src/lua/lua_html.c')
-rw-r--r--src/lua/lua_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_html.c b/src/lua/lua_html.c
index 3734e37ff..dc058745c 100644
--- a/src/lua/lua_html.c
+++ b/src/lua/lua_html.c
@@ -492,7 +492,7 @@ lua_html_foreach_tag (lua_State *L)
lua_pop (L, 1);
}
- if (hc && g_hash_table_size (ud.tags) > 0 && lua_isfunction (L, 3)) {
+ if (hc && (ud.any || g_hash_table_size (ud.tags) > 0) && lua_isfunction (L, 3)) {
if (hc->html_tags) {
lua_pushvalue (L, 3);