Upgrade to Ruby 4.0.1, bump version to 0.9.0
Some checks failed
Some checks failed
Replace CGI.parse (removed in Ruby 4.0) with Rack::Utils.parse_query in application controller, sessions controller, and OIDC tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -20,8 +20,8 @@ class SessionsController < ApplicationController
|
||||
begin
|
||||
uri = URI.parse(session[:return_to_after_authenticating])
|
||||
if uri.query.present?
|
||||
query_params = CGI.parse(uri.query)
|
||||
@login_hint = query_params["login_hint"]&.first
|
||||
query_params = Rack::Utils.parse_query(uri.query)
|
||||
@login_hint = query_params["login_hint"]
|
||||
end
|
||||
rescue URI::InvalidURIError
|
||||
# Ignore parsing errors
|
||||
|
||||
Reference in New Issue
Block a user