diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-29 20:08:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-29 20:08:25 +0100 |
commit | 89db3241edf1fcb5856882acf95b7f5f54eea71a (patch) | |
tree | b29d5799840e0d93b385a9556c8afb9417d5daf3 /src/lua/lua_task.c | |
parent | f5299d51ba510e7db5a3fac7861eadcd2316499b (diff) | |
download | rspamd-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.c | 4 |
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"); } |