Skip to content

Only load what is required from cgi#331

Merged
mame merged 1 commit intoruby:masterfrom
x-smasato:cgi-escape-3.5
Aug 8, 2025
Merged

Only load what is required from cgi#331
mame merged 1 commit intoruby:masterfrom
x-smasato:cgi-escape-3.5

Conversation

@smasato
Copy link
Contributor

@smasato smasato commented Jul 27, 2025

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

On older versions, require "cgi/util" is needed because the unescape* methods don't work otherwise.

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

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

On older versions, `require "cgi/util"` is needed because the unescape* methods don't work otherwise.

https://bugs.ruby-lang.org/issues/21258
@smasato smasato marked this pull request as ready for review July 27, 2025 06:30
Copy link
Member

@mame mame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mame mame merged commit 82cf54b into ruby:master Aug 8, 2025
7 checks passed
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

Comments