diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-28 17:21:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-28 17:21:09 +0000 |
commit | ea0584a431a49eb3fc682ccb3b8d6fc80a99db37 (patch) | |
tree | b75bf09eede782131aebea78e608ad6e7010e8e6 | |
parent | b2324423b1c5b0b9fa0a7cf173cc4ae903da018f (diff) | |
download | rspamd-ea0584a431a49eb3fc682ccb3b8d6fc80a99db37.tar.gz rspamd-ea0584a431a49eb3fc682ccb3b8d6fc80a99db37.zip |
[Minor] Lua_content: Make regexp more strict
-rw-r--r-- | lualib/lua_content/pdf.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index a531396db..6676d6d36 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -46,7 +46,7 @@ local pdf_patterns = { patterns = { [[netsh\s]], [[echo\s]], - [[/[A-Za-z]*#\d\d]], -- Hex encode obfuscation + [[/[A-Za-z]*#\d\d(?:[#A-Za-z<>/\s])]], -- Hex encode obfuscation } } } |