diff options
author | kennyj <kennyj@gmail.com> | 2013-09-19 02:40:03 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2013-09-19 02:43:22 +0900 |
commit | 0cc65081200fe93acf0058829bb9dd7c41e59e9d (patch) | |
tree | e3d7efcb6d6037f80cd4ac3b5e6b5dcc9e39705a /actionpack/lib/action_dispatch/journey | |
parent | 949c4291a4bffae582dc3987e8f4980ea13a2cff (diff) | |
download | rails-0cc65081200fe93acf0058829bb9dd7c41e59e9d.tar.gz rails-0cc65081200fe93acf0058829bb9dd7c41e59e9d.tar.bz2 rails-0cc65081200fe93acf0058829bb9dd7c41e59e9d.zip |
Fix an issue where router can't recognize downcased url encoding path.
Diffstat (limited to 'actionpack/lib/action_dispatch/journey')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/router/utils.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/journey/router/utils.rb b/actionpack/lib/action_dispatch/journey/router/utils.rb index 462f1a122d..80011597aa 100644 --- a/actionpack/lib/action_dispatch/journey/router/utils.rb +++ b/actionpack/lib/action_dispatch/journey/router/utils.rb @@ -16,6 +16,7 @@ module ActionDispatch path = "/#{path}" path.squeeze!('/') path.sub!(%r{/+\Z}, '') + path.gsub!(/(%[a-f0-9]{2}+)/) { $1.upcase } path = '/' if path == '' path end |