We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eee0c03 + 1fb98c8 commit ea1ca5dCopy full SHA for ea1ca5d
actionpack/CHANGELOG.md
@@ -1,3 +1,22 @@
1
+* Allow multiline to be passed in routes when using wildcard segments.
2
+
3
+ Previously routes with newlines weren't detected when using wildcard segments, returning
4
+ a `No route matches` error.
5
+ After this change, routes with newlines are detected on wildcard segments. Example
6
7
+ ```ruby
8
+ draw do
9
+ get "/wildcard/*wildcard_segment", to: SimpleApp.new("foo#index"), as: :wildcard
10
+ end
11
12
+ # After the change, the path matches.
13
+ assert_equal "/wildcard/a%0Anewline", url_helpers.wildcard_path(wildcard_segment: "a\nnewline")
14
+ ```
15
16
+ Fixes #39103
17
18
+ *Ignacio Chiazzo*
19
20
* Treat html suffix in controller translation.
21
22
*Rui Onodera*, *Gavin Miller*
0 commit comments