Skip to content

Conversation

@Earlopain
Copy link
Contributor

Description

In Ruby 3.5 most of the cgi gem will be removed. Only the various escape/unescape methods will be retained by default.

But:

  • On Ruby 3.5, cgi/escape is enough
  • Earlier versions need cgi/util since the unescape methods don't work otherwise.

I tested this down to Ruby 2.0.

https://bugs.ruby-lang.org/issues/21258

Completed Tasks

  • I have read the Contributing Guide.
  • The pull request is complete (implemented / written).
  • Git commits have been cleaned up (squash WIP / revert commits).
  • I wrote tests and ran bundle exec rake locally (if code is attached to PR).

Earlopain and others added 2 commits May 11, 2025 12:16
In Ruby 3.5 most of the cgi gem will be removed. Only the various escape/unescape methods will be retained by default.

But:
* On Ruby 3.5, `cgi/escape` is enough
* Earlier versions need `cgi/util` since the unescape methods don't work otherwise.

I tested this down to Ruby 2.0.

https://bugs.ruby-lang.org/issues/21258
@lsegal lsegal merged commit f546a86 into lsegal:main May 12, 2025
21 checks passed
@lsegal
Copy link
Owner

lsegal commented May 12, 2025

Awesome fix, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants