mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Leave escaping up to Journey
This commit is contained in:
parent
45ced7e1be
commit
ec37160664
1 changed files with 3 additions and 4 deletions
|
@ -394,10 +394,9 @@ module ActionDispatch
|
||||||
if name == :controller
|
if name == :controller
|
||||||
value
|
value
|
||||||
elsif value.is_a?(Array)
|
elsif value.is_a?(Array)
|
||||||
value.map { |v| Journey::Router::Utils.escape_uri(v.to_param) }.join('/')
|
value.map { |v| v.to_param }.join('/')
|
||||||
else
|
elsif param = value.to_param
|
||||||
return nil unless param = value.to_param
|
param
|
||||||
param.split('/').map { |v| Journey::Router::Utils.escape_uri(v) }.join("/")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue