Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cgi Gem to 0.3.6 #51427

Merged
merged 1 commit into from
Apr 21, 2023
Merged

Update cgi Gem to 0.3.6 #51427

merged 1 commit into from
Apr 21, 2023

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Apr 20, 2023

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
2 checks passed
@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.

None yet

2 participants