diff options
author | Alireza Bashiri <azbshiri@gmail.com> | 2018-07-20 15:18:49 +0430 |
---|---|---|
committer | Alireza Bashiri <azbshiri@gmail.com> | 2018-07-20 15:18:49 +0430 |
commit | 9b51ee9f925e9c1f64d0bae2039ff70cea0d0959 (patch) | |
tree | 814d463548ba6732087877d99f30a1fd19cd8c96 /railties | |
parent | 01429a665c1eadd20a64ca25d36190a9d9b555b1 (diff) | |
download | rails-9b51ee9f925e9c1f64d0bae2039ff70cea0d0959.tar.gz rails-9b51ee9f925e9c1f64d0bae2039ff70cea0d0959.tar.bz2 rails-9b51ee9f925e9c1f64d0bae2039ff70cea0d0959.zip |
Prevent `RequestEncoder#encode_params` to parse falsey params
When a `get` method called with `as: :json` and `params: nil` or
`params: false` (explicitly or implicitly)
`RequestEncoder#encode_params` converts it into a `null` or `false`
value which includes a unexpected `null=` or `false` query string into
request URL. From now on `RequestEncoder#encode_params` checks whether
`params` is nil or not otherwise returns.
Move down `nil` conversion guard
Update CHANGELOG.md
Diffstat (limited to 'railties')
0 files changed, 0 insertions, 0 deletions