summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-28 17:21:09 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-28 17:21:09 +0000
commitea0584a431a49eb3fc682ccb3b8d6fc80a99db37 (patch)
treeb75bf09eede782131aebea78e608ad6e7010e8e6
parentb2324423b1c5b0b9fa0a7cf173cc4ae903da018f (diff)
downloadrspamd-ea0584a431a49eb3fc682ccb3b8d6fc80a99db37.tar.gz
rspamd-ea0584a431a49eb3fc682ccb3b8d6fc80a99db37.zip
[Minor] Lua_content: Make regexp more strict
-rw-r--r--lualib/lua_content/pdf.lua2
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
}
}
}