lib/action_controller/metal/params_wrapper.rb in actionpack-6.1.3.2 vs lib/action_controller/metal/params_wrapper.rb in actionpack-6.1.4

- old
+ new

@@ -279,11 +279,14 @@ # Checks if we should perform parameters wrapping. def _wrapper_enabled? return false unless request.has_content_type? ref = request.content_mime_type.ref + _wrapper_formats.include?(ref) && _wrapper_key && !request.parameters.key?(_wrapper_key) + rescue ActionDispatch::Http::Parameters::ParseError + false end def _perform_parameter_wrapping wrapped_hash = _wrap_parameters request.request_parameters wrapped_keys = request.request_parameters.keys @@ -293,10 +296,8 @@ request.parameters.merge! wrapped_hash request.request_parameters.merge! wrapped_hash # This will display the wrapped hash in the log file. request.filtered_parameters.merge! wrapped_filtered_hash - rescue ActionDispatch::Http::Parameters::ParseError - # swallow parse error exception end end end