mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
dont include escaped_params because some other protection option has been set, related to rkh/rack-protection#6
This commit is contained in:
parent
d0a8907998
commit
d6fb8cc067
1 changed files with 2 additions and 2 deletions
|
@ -1360,8 +1360,8 @@ module Sinatra
|
|||
|
||||
def setup_protection(builder)
|
||||
return unless protection?
|
||||
options = Hash === protection ? protection.dup : {:except => [:escaped_params]}
|
||||
options[:except] = Array options[:except]
|
||||
options = Hash === protection ? protection.dup : {}
|
||||
options[:except] = Array(options[:except] || :escaped_params)
|
||||
options[:except] += [:session_hijacking, :remote_token] unless sessions?
|
||||
builder.use Rack::Protection, options
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue