Skip to content

Commit

Permalink
Use escape instead of escape_path
Browse files Browse the repository at this point in the history
  • Loading branch information
cyu committed Nov 14, 2019
1 parent b704fda commit b3c06f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log
All notable changes to this project will be documented in this file.

## 1.0.6 - 2019-11-14
### Changed
- Use Rack::Utils.escape to make compat with Rack 1.6.0

## 1.0.5 - 2019-11-14
### Changed
- Update Gem spec to require rack >= 1.6.0
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def select_logger(env)

def evaluate_path(env)
path = env[PATH_INFO]
path = Rack::Utils.clean_path_info(Rack::Utils.unescape_path(path)) if path
path = Rack::Utils.clean_path_info(Rack::Utils.unescape(path)) if path
path
end

Expand Down
2 changes: 1 addition & 1 deletion lib/rack/cors/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Rack
class Cors
VERSION = "1.0.5"
VERSION = "1.0.6"
end
end

0 comments on commit b3c06f1

Please sign in to comment.