From: Vsevolod Stakhov Date: Tue, 21 Jan 2020 12:47:42 +0000 (+0000) Subject: [Minor] Fix detection rules X-Git-Tag: 2.3~66 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8a11648daff5460cbaf387afb898d7cea34c4fd4;p=rspamd.git [Minor] Fix detection rules --- 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