Skip to content

Update cgi Gem to 0.3.6 - #51427

Merged
Hamms merged 1 commit into
stagingfrom
cgi-0.3.6
Apr 21, 2023
Merged

Update cgi Gem to 0.3.6#51427
Hamms merged 1 commit into
stagingfrom
cgi-0.3.6

Conversation

@Hamms

@Hamms Hamms commented Apr 20, 2023

Copy link
Copy Markdown
Contributor

In preparation for an update to Ruby 3.0; starting in Ruby 2.7.7, Ruby by default targets version 0.3.5 of the cgi gem, which fixed a security issue but also made the domain validation more restrictive than necessary. Version 0.3.6 loosens the restrictions.

Links

Testing story

Without this change, we get several hundred ArgumentError: invalid domain: ".code.org" errors in Dashboard tests on Ruby 3. With this change, we do not.

In preparation for an update to Ruby 3.0; starting in Ruby 2.7.7, Ruby by default targets version 0.3.5 of the `cgi` gem, which fixed a security issue but also made the domain validation more restrictive than necessary. Version 0.3.6 loosens the restrictions.

- https://github.com/ruby/cgi/releases/tag/v0.3.6
- ruby/cgi#29
- https://johnathan.org/ruby-2-7-7-invalid-domain/

Without this change, we get several hundred `ArgumentError: invalid domain: ".code.org"` errors in Dashboard tests on Ruby 3. With this change, we do not.
@Hamms Hamms added the Ruby Update Everything related to work to update the version of Ruby our codebase runs on label Apr 20, 2023
@Hamms
Hamms marked this pull request as ready for review April 20, 2023 20:33
@Hamms
Hamms requested review from a team April 20, 2023 20:33
@Hamms
Hamms merged commit 5de6f37 into staging Apr 21, 2023
@Hamms
Hamms deleted the cgi-0.3.6 branch April 21, 2023 00:59
@Hamms Hamms mentioned this pull request Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ruby Update Everything related to work to update the version of Ruby our codebase runs on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants