diff options
author | Steve Freegard <steve@stevefreegard.com> | 2018-03-19 12:00:05 +0000 |
---|---|---|
committer | Steve Freegard <steve@stevefreegard.com> | 2018-03-19 12:00:05 +0000 |
commit | 6a736ea5084b59ee922d713321d7aeaeffae82fc (patch) | |
tree | dcab4d28149afa76adebbe6cc95884614d240842 /rules | |
parent | b79129d61d36f5b95e32732c0a2e68c1533f2af5 (diff) | |
download | rspamd-6a736ea5084b59ee922d713321d7aeaeffae82fc.tar.gz rspamd-6a736ea5084b59ee922d713321d7aeaeffae82fc.zip |
Fix missing regexp
Diffstat (limited to 'rules')
-rw-r--r-- | rules/regexp/compromised_hosts.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/regexp/compromised_hosts.lua b/rules/regexp/compromised_hosts.lua index 37fef0dd7..67101a80d 100644 --- a/rules/regexp/compromised_hosts.lua +++ b/rules/regexp/compromised_hosts.lua @@ -138,6 +138,7 @@ reconf['HIDDEN_SOURCE_OBJ'] = { group = "compromised_hosts" } +local hidden_uri_re = rspamd_regexp.create_cached('/(?!\\/\\.well[-_]known\\/)(?:^\\.[A-Za-z0-9]|\\/\\.[A-Za-z0-9]|\\/\\.\\.\\/)/i') rspamd_config.URI_HIDDEN_PATH = { callback = function (task) local urls = task:get_urls(false) |