]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] HAS_GOOGLE_REDIR was not working with https://google.com
authorJose Celestino <japc@co.sapo.pt>
Thu, 23 Jan 2025 12:58:02 +0000 (12:58 +0000)
committerJose Celestino <japc@co.sapo.pt>
Thu, 23 Jan 2025 12:58:02 +0000 (12:58 +0000)
rules/regexp/urls.lua

index 76c4115cd60a7e59615bdbbad3b878693ff706f9..eff69a565e434253b8ce80cc9efde55028ca75f3 100644 (file)
@@ -9,7 +9,7 @@ reconf['HAS_GUC_PROXY_URI'] = {
 }
 
 reconf['HAS_GOOGLE_REDIR'] = {
-  re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/(amp\\/s\\/|url\\?)/{url}i',
+  re = '/[\\.\\/]google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/(amp\\/s\\/|url\\?)/{url}i',
   description = 'Has google.com/url or alike Google redirection URL',
   score = 1.0,
   group = 'url'