mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
upgrade rack-protection dependecy, remove escaped_params hack
This commit is contained in:
parent
26cfcc2c23
commit
27fd3159ac
2 changed files with 2 additions and 2 deletions
|
@ -1377,7 +1377,7 @@ module Sinatra
|
|||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue