mirror of
https://github.com/gosticks/brew.git
synced 2026-10-05 15:06:54 +00:00
Merge pull request #12220 from bevanjkay/cloudflare-regex-extend
audit: extend cloudflare https audit exception regex
This commit is contained in:
@@ -188,7 +188,7 @@ module Utils
|
||||
# Check if a URL is protected by CloudFlare (e.g. badlion.net and jaxx.io).
|
||||
def url_protected_by_cloudflare?(details)
|
||||
[403, 503].include?(details[:status].to_i) &&
|
||||
details[:headers].match?(/^Set-Cookie: __cfduid=/i) &&
|
||||
details[:headers].match?(/^Set-Cookie: (__cfduid|__cf_bm)=/i) &&
|
||||
details[:headers].match?(/^Server: cloudflare/i)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user