From fdb95403bfa6a2cf33cbb1424b62caaf7245525d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 27 May 2020 16:14:31 +0100 Subject: [PATCH] [Minor] PDF: Increase JS size limit for fuzzy hashes --- 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 785959dfe..f98ad232b 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -114,7 +114,7 @@ local config = { url_extraction = true, enabled = true, js_fuzzy = true, -- Generate fuzzy hashes from PDF javascripts - min_js_fuzzy = 32, -- Minimum size of js to be considered as a fuzzy + min_js_fuzzy = 256, -- Minimum size of js to be considered as a fuzzy openaction_fuzzy_only = false, -- Generate fuzzy from all scripts max_pdf_objects = 10000, -- Maximum number of objects to be considered max_pdf_trailer = 10 * 1024 * 1024, -- Maximum trailer size (to avoid abuse) -- 2.39.5