aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-29 20:08:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-29 20:08:25 +0100
commit89db3241edf1fcb5856882acf95b7f5f54eea71a (patch)
treeb29d5799840e0d93b385a9556c8afb9417d5daf3 /src/lua/lua_task.c
parentf5299d51ba510e7db5a3fac7861eadcd2316499b (diff)
downloadrspamd-89db3241edf1fcb5856882acf95b7f5f54eea71a.tar.gz
rspamd-89db3241edf1fcb5856882acf95b7f5f54eea71a.zip
[Minor] Fix default behaviour of task:get_urls
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r--src/lua/lua_task.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index 1ca96ed76..51936a532 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -2274,7 +2274,7 @@ 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), max_urls)) {
+ ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE), max_urls)) {
return luaL_error (L, "invalid arguments");
}
@@ -2433,7 +2433,7 @@ lua_task_get_emails (lua_State * L)
if (task) {
if (task->message) {
if (!lua_url_cbdata_fill (L, 2, &cb, PROTOCOL_MAILTO,
- (~RSPAMD_URL_FLAG_CONTENT), max_urls)) {
+ ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE), max_urls)) {
return luaL_error (L, "invalid arguments");
}