Skip to content

Use cgi/escape for Ruby 4.0 compatibility#785

Open
joshwetzel wants to merge 1 commit intoSAML-Toolkits:masterfrom
joshwetzel:cgi-escape
Open

Use cgi/escape for Ruby 4.0 compatibility#785
joshwetzel wants to merge 1 commit intoSAML-Toolkits:masterfrom
joshwetzel:cgi-escape

Conversation

@joshwetzel
Copy link
Copy Markdown
Contributor

@joshwetzel joshwetzel commented Feb 1, 2026

Ruby 4.0 removed the full CGI library from the standard library, which produces a warning. Since the code only uses CGI.escape, we can require cgi/escape instead of the full cgi library. This provides just the escape/unescape functionality and is compatible with both Ruby 3.x and 4.x.

warning: CGI library is removed from Ruby 4.0. Please use cgi/escape instead for
CGI.escape and CGI.unescape features

@joshwetzel
Copy link
Copy Markdown
Contributor Author

@pitbulk thanks for merging #784! Here's another one for you if you haven't seen it already.

@johnnyshields
Copy link
Copy Markdown
Collaborator

@pitbulk can we release RubySaml 2.0 -- I already fixed this there, along with many other bugs.

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