diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-03 07:54:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 07:54:44 +0100 |
commit | 413cb5c5961eb5ee8c247e801bc0b7bdaa79ccf9 (patch) | |
tree | 6f3defb43e285197b9164bdca9e8dd234f0a0c48 | |
parent | 30dce5fe17e0fe0882ddd4c836f5855b79b66156 (diff) | |
parent | d47473f55375db0de222fc1d2f31be7a8dbacb90 (diff) | |
download | rspamd-413cb5c5961eb5ee8c247e801bc0b7bdaa79ccf9.tar.gz rspamd-413cb5c5961eb5ee8c247e801bc0b7bdaa79ccf9.zip |
Merge pull request #4558 from twesterhever/temp-detect-google-amp-urls
[Minor] Tweak HAS_GOOGLE_REDIR to detect Google AMP URLs as well
-rw-r--r-- | rules/regexp/headers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua index b6b5e10d4..42c08ca3f 100644 --- a/rules/regexp/headers.lua +++ b/rules/regexp/headers.lua @@ -912,7 +912,7 @@ reconf['HAS_GUC_PROXY_URI'] = { } reconf['HAS_GOOGLE_REDIR'] = { - re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/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' |