Skip to content

Commit

Permalink
upgrade rack-protection dependecy, remove escaped_params hack
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Dec 30, 2011
1 parent 26cfcc2 commit 27fd315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -1377,7 +1377,7 @@ def setup_custom_logger(builder)
def setup_protection(builder)
return unless protection?
options = Hash === protection ? protection.dup : {}
options[:except] = Array(options[:except] || :escaped_params)
options[:except] = Array options[:except]
options[:except] += [:session_hijacking, :remote_token] unless sessions?
builder.use Rack::Protection, options
end
Expand Down
2 changes: 1 addition & 1 deletion sinatra.gemspec
Expand Up @@ -13,6 +13,6 @@ Gem::Specification.new 'sinatra', Sinatra::VERSION do |s|
s.rdoc_options = %w[--line-numbers --inline-source --title Sinatra --main README.rdoc]

s.add_dependency 'rack', '~> 1.3', '>= 1.3.6'
s.add_dependency 'rack-protection', '~> 1.1', '>= 1.1.2'
s.add_dependency 'rack-protection', '~> 1.2'
s.add_dependency 'tilt', '~> 1.3', '>= 1.3.3'
end

0 comments on commit 27fd315

Please sign in to comment.