commit 7774b5f: [Minor] Fix regexps for using in pcre
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Dec 2 19:07:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-02 19:01:26 +0000
URL: https://github.com/rspamd/rspamd/commit/7774b5f0ac4ddfb00de40d7c682a79fb7daea7f9 (HEAD -> master)
[Minor] Fix regexps for using in pcre
---
lualib/lua_content/pdf.lua | 10 +++++-----
1 file 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
}
}
}
More information about the Commits
mailing list