]> source.dussan.org Git - rspamd.git/commitdiff
Fix missing regexp
authorSteve Freegard <steve@stevefreegard.com>
Mon, 19 Mar 2018 12:00:05 +0000 (12:00 +0000)
committerSteve Freegard <steve@stevefreegard.com>
Mon, 19 Mar 2018 12:00:05 +0000 (12:00 +0000)
rules/regexp/compromised_hosts.lua

index 37fef0dd787ab409ace1436376ab34dbe54127f2..67101a80d33691eac8909a6463dadceafc2b83ec 100644 (file)
@@ -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)