File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,18 @@ module RequestPatch
35
35
def self . permitted_caller?
36
36
caller_locations . any? do |loc |
37
37
# Our parser calls Rack's to prepopulate caches
38
- loc . path . end_with? ( "lib/action_dispatch/http/request.rb" ) && loc . label == "request_parameters_list" ||
38
+ loc . path . end_with? ( "lib/action_dispatch/http/request.rb" ) && loc . base_label == "request_parameters_list" ||
39
39
# and as a fallback for older Rack versions
40
- loc . path . end_with? ( "lib/action_dispatch/http/request.rb" ) && loc . label == "fallback_request_parameters" ||
40
+ loc . path . end_with? ( "lib/action_dispatch/http/request.rb" ) && loc . base_label == "fallback_request_parameters" ||
41
41
# This specifically tests that a "pure" Rack middleware
42
42
# doesn't interfere with our parsing
43
- ( loc . path . end_with? ( "test/dispatch/request/query_string_parsing_test.rb" ) && loc . label == "populate_rack_cache" ) ||
43
+ ( loc . path . end_with? ( "test/dispatch/request/query_string_parsing_test.rb" ) && loc . base_label == "populate_rack_cache" ) ||
44
44
# Rack::MethodOverride obviously uses Rack's parsing, and
45
45
# that's fine: it's looking for a simple top-level key.
46
46
# Checking for a specific internal method is fragile, but we
47
47
# don't want to ignore any app that happens to have
48
48
# MethodOverride on its call stack!
49
- ( loc . path . end_with? ( "lib/rack/method_override.rb" ) && loc . label == "method_override_param" )
49
+ ( loc . path . end_with? ( "lib/rack/method_override.rb" ) && loc . base_label == "method_override_param" )
50
50
end
51
51
end
52
52
You can’t perform that action at this time.
0 commit comments