From 70ac4d70d2edd40a25108d833966536b9f4e782c Mon Sep 17 00:00:00 2001 From: Bevan Kay Date: Mon, 11 Oct 2021 15:52:37 +1100 Subject: [PATCH] audit: extend cloudflare https audit exception regex --- Library/Homebrew/utils/curl.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb index 81ed1a6372..8a28e93217 100644 --- a/Library/Homebrew/utils/curl.rb +++ b/Library/Homebrew/utils/curl.rb @@ -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