aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-02 19:01:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-02 19:01:26 +0000
commit7774b5f0ac4ddfb00de40d7c682a79fb7daea7f9 (patch)
tree5b1c7a78b594e9d71f154ce01fabb28520886e42
parentdbe3d373ce8b86061c20cfcd6c726dc736016f58 (diff)
downloadrspamd-7774b5f0ac4ddfb00de40d7c682a79fb7daea7f9.tar.gz
rspamd-7774b5f0ac4ddfb00de40d7c682a79fb7daea7f9.zip
[Minor] Fix regexps for using in pcre
-rw-r--r--lualib/lua_content/pdf.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index 6676d6d36..04803f754 100644
--- a/lualib/lua_content/pdf.lua
+++ b/lualib/lua_content/pdf.lua
@@ -32,21 +32,21 @@ local pdf_patterns = {
},
javascript = {
patterns = {
- [[/JS(?:[\s/><])]],
- [[/JavaScript(?:[\s/><])]],
+ [[\/JS(?:[\s/><])]],
+ [[\/JavaScript(?:[\s/><])]],
}
},
openaction = {
patterns = {
- [[/OpenAction(?:[\s/><])]],
- [[/AA(?:[\s/><])]],
+ [[\/OpenAction(?:[\s/><])]],
+ [[\/AA(?:[\s/><])]],
}
},
suspicious = {
patterns = {
[[netsh\s]],
[[echo\s]],
- [[/[A-Za-z]*#\d\d(?:[#A-Za-z<>/\s])]], -- Hex encode obfuscation
+ [[\/[A-Za-z]*#\d\d(?:[#A-Za-z<>/\s])]], -- Hex encode obfuscation
}
}
}