aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_content
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_content')
-rw-r--r--lualib/lua_content/ical.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_content/ical.lua b/lualib/lua_content/ical.lua
index ed9a87cc5..d5a49de2b 100644
--- a/lualib/lua_content/ical.lua
+++ b/lualib/lua_content/ical.lua
@@ -42,7 +42,7 @@ local function extract_text_data(specific)
return table.concat(tbl, '\n')
end
-local function process_ical(input, _, task)
+local function process_ical(input, mpart, task)
local control={n='\n', r=''}
local rspamd_url = require "rspamd_url"
local escaper = l.Ct((gen_grammar() / function(key, value)
@@ -54,7 +54,7 @@ local function process_ical(input, _, task)
for _,u in ipairs(local_urls) do
lua_util.debugm(N, task, 'ical: found URL in ical %s',
tostring(u))
- task:inject_url(u)
+ task:inject_url(u, mpart)
end
end
lua_util.debugm(N, task, 'ical: ical key %s = "%s"',