Skip to content

Commit

Permalink
Merge pull request #1632 from baelter/escaped_params_settings
Browse files Browse the repository at this point in the history
Enable EscapedParams if passed via settings
  • Loading branch information
jkowens committed Aug 15, 2020
2 parents 87e48d0 + 2d839f8 commit bb41347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rack-protection/lib/rack/protection.rb
Expand Up @@ -33,8 +33,9 @@ def self.new(app, options = {})
Rack::Builder.new do
# Off by default, unless added
use ::Rack::Protection::AuthenticityToken, options if use_these.include? :authenticity_token
use ::Rack::Protection::CookieTossing, options if use_these.include? :cookie_tossing
use ::Rack::Protection::ContentSecurityPolicy, options if use_these.include? :content_security_policy
use ::Rack::Protection::CookieTossing, options if use_these.include? :cookie_tossing
use ::Rack::Protection::EscapedParams, options if use_these.include? :escaped_params
use ::Rack::Protection::FormToken, options if use_these.include? :form_token
use ::Rack::Protection::ReferrerPolicy, options if use_these.include? :referrer_policy
use ::Rack::Protection::RemoteReferrer, options if use_these.include? :remote_referrer
Expand Down

0 comments on commit bb41347

Please sign in to comment.