From e430f229368bbae711c666a4e1f14638da306644 Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Thu, 22 Dec 2022 19:52:20 -0300 Subject: [PATCH] FIX: Ensure we have a patched version of CGI gem (#19588) * FIX: Ensure we have a patched version of CGI gem Per https://github.com/ruby/cgi/pull/29 the current shipped version of the CGI gem doesn't allow for leading dots in domain names, which breaks setting cookies like `.example.com`. * Update Gemfile Co-authored-by: Jarek Radosz Co-authored-by: Jarek Radosz --- Gemfile | 2 ++ Gemfile.lock | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index 537f6fcad6a..3d7be1d4342 100644 --- a/Gemfile +++ b/Gemfile @@ -272,3 +272,5 @@ gem 'faraday-retry' gem 'net-http' gem 'webrick', require: false + +gem "cgi", ">= 0.3.6", require: false diff --git a/Gemfile.lock b/Gemfile.lock index 5f1d66dbf2c..18926283bc7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -97,6 +97,7 @@ GEM xpath (~> 3.2) cbor (0.5.9.6) certified (1.0.0) + cgi (0.3.6) chunky_png (1.4.0) coderay (1.1.3) colored2 (3.1.2) @@ -517,6 +518,7 @@ DEPENDENCIES capybara cbor certified + cgi (>= 0.3.6) colored2 cose cppjieba_rb