diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-26 14:08:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-26 14:08:28 +0100 |
commit | de1229f674bc8896a0373d030d3ead0c98f0e731 (patch) | |
tree | 99506d5b5bee45ff1ebce6eabc70d3c09ba8e90c /src/lua/lua_html.c | |
parent | 5d6bd253f7bf7804cb0b52485c465324cfc42b7b (diff) | |
download | rspamd-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.c | 2 |
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); |