From eb60784ac2d3514bba1af00750f40ce1ff74389a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 17 Aug 2021 12:14:10 +0100 Subject: [Minor] Add `invisible` flag to url structure --- src/lua/lua_task.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lua/lua_task.c') 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"); } -- cgit v1.2.3