summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-21 12:47:42 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-01-21 12:47:42 +0000
commit8a11648daff5460cbaf387afb898d7cea34c4fd4 (patch)
tree1552e2501915278318e992f6a46567901c663d6b /rules
parenta15303b3ed20d8bf14b861042fa53a153acf181a (diff)
downloadrspamd-8a11648daff5460cbaf387afb898d7cea34c4fd4.tar.gz
rspamd-8a11648daff5460cbaf387afb898d7cea34c4fd4.zip
[Minor] Fix detection rules
Diffstat (limited to 'rules')
-rw-r--r--rules/content.lua4
1 files 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