summaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-07 15:00:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-09-07 15:01:30 +0100
commit909a594f8d003dbe89462ad02d1634371f42bec3 (patch)
tree8bedd9431801c3fcdc28bc8f2d37de774c491ee9 /src/lua
parent0d3cdd6e4512233cc1e328c6d517c8fda0e4aef2 (diff)
downloadrspamd-909a594f8d003dbe89462ad02d1634371f42bec3.tar.gz
rspamd-909a594f8d003dbe89462ad02d1634371f42bec3.zip
[Rework] Save invisible content to a separate buffer
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_html.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx
index 848bfbdf3..8767d1a11 100644
--- a/src/lua/lua_html.cxx
+++ b/src/lua/lua_html.cxx
@@ -448,7 +448,7 @@ lua_html_foreach_tag (lua_State *L)
auto *ltag = static_cast<lua_html_tag *>(lua_newuserdata(L, sizeof(lua_html_tag)));
ltag->tag = tag;
ltag->html = hc;
- auto ct = ltag->tag->get_content(hc->parsed);
+ auto ct = ltag->tag->get_content(hc);
rspamd_lua_setclass (L, "rspamd{html_tag}", -1);
lua_pushinteger (L, ct.size());
@@ -582,7 +582,7 @@ lua_html_tag_get_content (lua_State *L)
if (ltag) {
if (ltag->html) {
- auto ct = ltag->tag->get_content(ltag->html->parsed);
+ auto ct = ltag->tag->get_content(ltag->html);
if (ct.size() > 0) {
t = static_cast<rspamd_lua_text *>(lua_newuserdata(L, sizeof(*t)));
rspamd_lua_setclass(L, "rspamd{text}", -1);
@@ -613,7 +613,7 @@ lua_html_tag_get_content_length (lua_State *L)
if (ltag) {
if (ltag->html) {
- auto ct = ltag->tag->get_content(ltag->html->parsed);
+ auto ct = ltag->tag->get_content(ltag->html);
lua_pushinteger (L, ct.size());
}
else {