aboutsummaryrefslogtreecommitdiffstats
path: root/rules/content.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-21 09:27:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-21 09:27:32 +0000
commitbce6f96e75160fd11ce19cad3570786ad76a8e52 (patch)
tree7b3ae22b6a0905ee4264b03dd79ccdff733eec6a /rules/content.lua
parente5fb493dcf4de4d6afa14f7e129a5ac5c0580745 (diff)
downloadrspamd-bce6f96e75160fd11ce19cad3570786ad76a8e52.tar.gz
rspamd-bce6f96e75160fd11ce19cad3570786ad76a8e52.zip
[Minor] Fix PDF_JAVASCRIPT rule
Diffstat (limited to 'rules/content.lua')
-rw-r--r--rules/content.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/rules/content.lua b/rules/content.lua
index 718fd22c1..fb7a0ad58 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