From: Vsevolod Stakhov Date: Tue, 21 Jan 2020 09:27:13 +0000 (+0000) Subject: [Minor] Fix PDF_JAVASCRIPT rule X-Git-Tag: 2.3~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bce6f96e75160fd11ce19cad3570786ad76a8e52;p=thirdparty%2Frspamd.git [Minor] Fix PDF_JAVASCRIPT rule --- diff --git a/rules/content.lua b/rules/content.lua index 718fd22c11..fb7a0ad583 100644 --- a/rules/content.lua +++ b/rules/content.lua @@ -24,12 +24,9 @@ local function process_pdf_specific(task, part, specific) end end - if specific.javascript then + if specific.openaction and #specific.openaction > 10 then task:insert_result('PDF_JAVASCRIPT', 1.0, part:get_filename()) - suspicious_factor = suspicious_factor + 0.1 - if specific.openaction then - suspicious_factor = suspicious_factor + 0.5 - end + suspicious_factor = suspicious_factor + 0.5 end if specific.suspicious then