This project is archived and is in readonly mode.
Slash gets escaped when globbing a route
-
Brian Rose
- Tag changed from tests actionpack, glob, router to rails 3, tests actionpack, glob, router
-
eagle.anton (at gmail)
- Tag changed from rails 3, tests actionpack, glob, router to rails 3, slash escape, tests actionpack, glob, router
Confirm this but not only for globbing.
For example this route:
match "/:path" => "pages#show", :constraints => {:path => /.+(\/.+)*/ } assert_routing '/directory/filename', :controller => 'pages', :action => 'show', :path => 'directory/filename' The generated path <"/directory%2Ffilename"> did not match <"/directory/filename">Patch solves the problem.
-
David Chelimsky
- Assigned user set to José Valim
- Tag changed from rails 3, slash escape, tests actionpack, glob, router to rails 3, slash escape, tests actionpack, glob, patch, router
-
Repository
- State changed from new to resolved
(from [622092d33e8d326217ab1ed6138e2c572c95b8ba]) Fixed a globbed route issue where slashes were being escaped, causing assert_routing to fail. [#5135 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/622092d33e8d326217ab1ed6138e2c... -
David Chelimsky
Great. Thank you, José!
