aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_html.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-11 16:36:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-06-11 16:36:31 +0100
commitbd1ed8fa07d22dd048fc38a191ed34f77d8618de (patch)
tree46489cc59934ea898e9eb54107b7b5bf1d34ac9f /src/lua/lua_html.cxx
parent3f17e650d2659c78e12edc27caad61c2833d973e (diff)
downloadrspamd-bd1ed8fa07d22dd048fc38a191ed34f77d8618de.tar.gz
rspamd-bd1ed8fa07d22dd048fc38a191ed34f77d8618de.zip
[Minor] Use traverse over all tags
Diffstat (limited to 'src/lua/lua_html.cxx')
-rw-r--r--src/lua/lua_html.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_html.cxx b/src/lua/lua_html.cxx
index 058ef401f..7e17f835f 100644
--- a/src/lua/lua_html.cxx
+++ b/src/lua/lua_html.cxx
@@ -431,7 +431,7 @@ lua_html_foreach_tag (lua_State *L)
}
if (hc && (any || !tags.empty()) && lua_isfunction (L, 3)) {
- hc->traverse_tags([&](const rspamd::html::html_tag *tag) -> bool {
+ hc->traverse_all_tags([&](const rspamd::html::html_tag *tag) -> bool {
if (tag && (any || tags.contains(tag->id))) {
lua_pushvalue(L, 3);