commit 1bf5eb0: [Minor] Set content flag on urls extracted from pdf
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Apr 21 15:21:13 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-04-21 14:33:40 +0100
URL: https://github.com/rspamd/rspamd/commit/1bf5eb0209b4ef5e294dea4f883e13eb8a45b2dc
[Minor] Set content flag on urls extracted from pdf
---
lualib/lua_content/pdf.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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',
More information about the Commits
mailing list