aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-13 17:23:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-13 17:23:25 +0000
commita1e2033433b5954638454b4435c3dbcd9e89c477 (patch)
tree9dda3343b4e41bbbec44c0403d722dc6206fae63 /lualib
parentb20521fd4e5a57b1b27f021f77f0e0dfbf8c9731 (diff)
downloadrspamd-a1e2033433b5954638454b4435c3dbcd9e89c477.tar.gz
rspamd-a1e2033433b5954638454b4435c3dbcd9e89c477.zip
[Minor] Lua_content: Fix some more crappy pdf issues
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_content/pdf.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index 516eb8be2..b3fa03f28 100644
--- a/lualib/lua_content/pdf.lua
+++ b/lualib/lua_content/pdf.lua
@@ -54,7 +54,7 @@ local pdf_patterns = {
},
start_object = {
patterns = {
- [=[[\r\n\0]\s*\d+ \d+ obj[\r\n]]=]
+ [=[[\r\n\0]\s*\d+\s+\d+\s+obj[\r\n]]=]
}
},
end_object = {
@@ -408,7 +408,7 @@ local function process_dict(task, pdf, obj, dict)
local resources = dict.Resources
if resources and type(resources) == 'table' then
- obj.resources = resources
+ obj.resources = maybe_dereference_object(resources, pdf, task)
else
-- Fucking pdf: we need to inherit from parent
resources = {}