1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #43461 from ignacio-chiazzo/update-changelog

Update missing actionpack CHANGELOG entry for wildcard route fix
This commit is contained in:
Aaron Patterson 2021-10-14 11:45:34 -07:00 committed by GitHub
commit ea1ca5d9ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,22 @@
* Allow multiline to be passed in routes when using wildcard segments.
Previously routes with newlines weren't detected when using wildcard segments, returning
a `No route matches` error.
After this change, routes with newlines are detected on wildcard segments. Example
```ruby
draw do
get "/wildcard/*wildcard_segment", to: SimpleApp.new("foo#index"), as: :wildcard
end
# After the change, the path matches.
assert_equal "/wildcard/a%0Anewline", url_helpers.wildcard_path(wildcard_segment: "a\nnewline")
```
Fixes #39103
*Ignacio Chiazzo*
* Treat html suffix in controller translation.
*Rui Onodera*, *Gavin Miller*