-
-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix query params being clobbered by Clearance::BackDoor (#1041)
In rack 3.1.x Setting Rack::RACK_REQUEST_QUERY_STRING causes rack to think that the query string has already been parsed (see https://github.com/rack/rack/blob/v3.1.7/lib/rack/request.rb#L487) This was introduced in #2703 but wasn't actually necessary - the warning mentioned in that PR is only triggered if only Rack::RACK_REQUEST_QUERY_STRING is updated, but the correct behaviour is to only set Rack::QUERY_STRING, not to set both Fixes #1040
- Loading branch information
Showing
3 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters