Skip to content

Commit

Permalink
[Minor] Tweak HAS_GOOGLE_REDIR to detect Google AMP URLs as well
Browse files Browse the repository at this point in the history
  • Loading branch information
twesterhever committed Aug 2, 2023
1 parent e1b653d commit d47473f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/regexp/headers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d47473f

Please sign in to comment.