aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-17 12:14:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-17 12:14:10 +0100
commiteb60784ac2d3514bba1af00750f40ce1ff74389a (patch)
treecdc29befbbd8b540672d93898dbf8b67acfc8be0 /src/lua/lua_task.c
parente3a05b7969106514ce2e8c46e419e023f4a28d4d (diff)
downloadrspamd-eb60784ac2d3514bba1af00750f40ce1ff74389a.tar.gz
rspamd-eb60784ac2d3514bba1af00750f40ce1ff74389a.zip
[Minor] Add `invisible` flag to url structure
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index eacf1bd15..42dbbae25 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2462,7 +2462,8 @@ lua_task_get_urls (lua_State * L)
/* Exclude RSPAMD_URL_FLAG_CONTENT to preserve backward compatibility */
if (!lua_url_cbdata_fill (L, 2, &cb, default_protocols_mask,
- ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE), max_urls)) {
+ ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE|RSPAMD_URL_FLAG_INVISIBLE),
+ max_urls)) {
return luaL_error (L, "invalid arguments");
}
@@ -2734,7 +2735,8 @@ lua_task_get_emails (lua_State * L)
}
if (!lua_url_cbdata_fill (L, 2, &cb, PROTOCOL_MAILTO,
- ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE), max_urls)) {
+ ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE|RSPAMD_URL_FLAG_INVISIBLE),
+ max_urls)) {
return luaL_error (L, "invalid arguments");
}