Skip to content
Browse files

Don't escape parameters by default in included rack-protection. relat…

…es to issue #310
  • Loading branch information...
1 parent c61c5e5 commit c59fad7eb008e08af0fc5ac74469370c0fa76245 @jacobo jacobo committed Sep 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
2 lib/sinatra/base.rb
@@ -1361,7 +1361,7 @@ def setup_logging(builder)
def setup_protection(builder)
return unless protection?
- options = Hash === protection ? protection.dup : {}
+ options = Hash === protection ? protection.dup : {:except => [:escaped_params]}
options[:except] = Array options[:except]
options[:except] += [:session_hijacking, :remote_token] unless sessions?
builder.use Rack::Protection, options

0 comments on commit c59fad7

Please sign in to comment.
Something went wrong with that request. Please try again.