diff options
author | Sergey Nartimov <just.lest@gmail.com> | 2012-02-16 21:50:07 +0300 |
---|---|---|
committer | Sergey Nartimov <just.lest@gmail.com> | 2012-02-16 21:50:07 +0300 |
commit | d07b2f3e295031b4a2b6a3f8c80d7e92a78329c2 (patch) | |
tree | b45d4ec9711b941291c6d4da255b7b8c6849cc1a /actionpack/lib/action_dispatch/middleware | |
parent | 079e2f4ec1c299424200f59b45bb2beae08d5966 (diff) | |
download | rails-d07b2f3e295031b4a2b6a3f8c80d7e92a78329c2.tar.gz rails-d07b2f3e295031b4a2b6a3f8c80d7e92a78329c2.tar.bz2 rails-d07b2f3e295031b4a2b6a3f8c80d7e92a78329c2.zip |
escape static file path to prevent double unescaping
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/static.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/static.rb b/actionpack/lib/action_dispatch/middleware/static.rb index 404943d720..11c346926c 100644 --- a/actionpack/lib/action_dispatch/middleware/static.rb +++ b/actionpack/lib/action_dispatch/middleware/static.rb @@ -18,7 +18,7 @@ module ActionDispatch match = matches.detect { |m| File.file?(m) } if match match.sub!(@compiled_root, '') - match + ::Rack::Utils.escape(match) end end |