From 8a11648daff5460cbaf387afb898d7cea34c4fd4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 21 Jan 2020 12:47:42 +0000 Subject: [PATCH] [Minor] Fix detection rules --- rules/content.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules/content.lua b/rules/content.lua index fb7a0ad58..1f591c2d7 100644 --- a/rules/content.lua +++ b/rules/content.lua @@ -24,9 +24,9 @@ local function process_pdf_specific(task, part, specific) end end - if specific.openaction and #specific.openaction > 10 then + if specific.scripts then task:insert_result('PDF_JAVASCRIPT', 1.0, part:get_filename()) - suspicious_factor = suspicious_factor + 0.5 + suspicious_factor = suspicious_factor + 0.1 end if specific.suspicious then -- 2.39.5