File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -626,6 +626,7 @@ def protect_against_forgery? # :doc:
626
626
If you cannot change the referrer policy, you can disable origin checking with the
627
627
Rails.application.config.action_controller.forgery_protection_origin_check setting.
628
628
MSG
629
+ private_constant :NULL_ORIGIN_MESSAGE
629
630
630
631
# Checks if the request originated from the same origin by looking at the Origin
631
632
# header.
Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ module Http
17
17
# For more information about filter behavior, see
18
18
# ActiveSupport::ParameterFilter.
19
19
module FilterParameters
20
- ENV_MATCH = [ /RAW_POST_DATA/ , "rack.request.form_vars" ] # :nodoc:
21
- NULL_PARAM_FILTER = ActiveSupport ::ParameterFilter . new # :nodoc:
22
- NULL_ENV_FILTER = ActiveSupport ::ParameterFilter . new ENV_MATCH # :nodoc:
20
+ # :stopdoc:
21
+ ENV_MATCH = [ /RAW_POST_DATA/ , "rack.request.form_vars" ]
22
+ NULL_PARAM_FILTER = ActiveSupport ::ParameterFilter . new
23
+ NULL_ENV_FILTER = ActiveSupport ::ParameterFilter . new ENV_MATCH
24
+ # :startdoc:
23
25
24
26
def initialize
25
27
super
You can’t perform that action at this time.
0 commit comments