From: Jose Celestino Date: Thu, 23 Jan 2025 12:58:02 +0000 (+0000) Subject: [Minor] HAS_GOOGLE_REDIR was not working with https://google.com X-Git-Tag: 3.11.1~32^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6dca1b13c6665653882ddcaf72d310b747030b99;p=thirdparty%2Frspamd.git [Minor] HAS_GOOGLE_REDIR was not working with https://google.com --- diff --git a/rules/regexp/urls.lua b/rules/regexp/urls.lua index 76c4115cd6..eff69a565e 100644 --- a/rules/regexp/urls.lua +++ b/rules/regexp/urls.lua @@ -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'