diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-29 14:43:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-29 14:43:40 +0100 |
commit | 98867787d12f6604694cdea66cc3f63c14887702 (patch) | |
tree | 3d6ad2bb4a0e575384a7c0e616a0f4dbb0754c5a /lualib/lua_content | |
parent | 05675bda7d2c8344f58679d7f66a904d30233c5d (diff) | |
download | rspamd-98867787d12f6604694cdea66cc3f63c14887702.tar.gz rspamd-98867787d12f6604694cdea66cc3f63c14887702.zip |
[Minor] Do not decomress encrypted streams when encryption is in xref
Diffstat (limited to 'lualib/lua_content')
-rw-r--r-- | lualib/lua_content/pdf.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index e47c21ef6..8b77213af 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -1008,6 +1008,11 @@ local function postprocess_pdf_objects(task, input, pdf) end if obj.ref then parse_object_grammar(obj, task, pdf) + + -- Special early handling + if obj.dict and obj.dict.Type and obj.dict.Type == 'XRef' then + process_xref(task, pdf, obj) + end end end |