aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-21 14:33:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-21 14:33:40 +0100
commit1bf5eb0209b4ef5e294dea4f883e13eb8a45b2dc (patch)
tree5dcfb3fccc27e4f7f46f4f8d49cd678078d5cb7a /lualib
parentc5c2eaf6b05640a9a0934042a099e818719357aa (diff)
downloadrspamd-1bf5eb0209b4ef5e294dea4f883e13eb8a45b2dc.tar.gz
rspamd-1bf5eb0209b4ef5e294dea4f883e13eb8a45b2dc.zip
[Minor] Set content flag on urls extracted from pdf
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_content/pdf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index b410c2a14..fbb7482c1 100644
--- a/lualib/lua_content/pdf.lua
+++ b/lualib/lua_content/pdf.lua
@@ -1066,7 +1066,7 @@ local function search_urls(task, pdf)
elseif k == 'URI' then
v = maybe_dereference_object(v, pdf, task)
if type(v) == 'string' then
- local url = rspamd_url.create(task:get_mempool(), v)
+ local url = rspamd_url.create(task:get_mempool(), v, {'content'})
if url then
lua_util.debugm(N, task, 'found url %s in object %s:%s',