diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-18 19:56:29 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-11-18 19:56:29 +0000 |
commit | 550c1905fe920aa857550317edd8e2961f087978 (patch) | |
tree | 636197448afd52924402e7460f0bc75bcb714d8b /src/lua | |
parent | 87ef9084fbc26218762f7b9a90522507543d142a (diff) | |
download | rspamd-550c1905fe920aa857550317edd8e2961f087978.tar.gz rspamd-550c1905fe920aa857550317edd8e2961f087978.zip |
[Fix] Apply max_lua_urls limit for emails as well
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_task.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 188a19671..061ed1ee2 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -2567,6 +2567,10 @@ lua_task_get_emails (lua_State * L) if (task) { if (task->message) { + if (task->cfg) { + max_urls = task->cfg->max_lua_urls; + } + if (!lua_url_cbdata_fill (L, 2, &cb, PROTOCOL_MAILTO, ~(RSPAMD_URL_FLAG_CONTENT|RSPAMD_URL_FLAG_IMAGE), max_urls)) { return luaL_error (L, "invalid arguments"); |