"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "actionpack/lib/action_controller/metal/params_wrapper.rb" between
rails-6.1.3.2.tar.gz and rails-6.1.4.tar.gz

About: Ruby on Rails is a web application development framework (written in Ruby).

params_wrapper.rb  (rails-6.1.3.2):params_wrapper.rb  (rails-6.1.4)
skipping to change at line 284 skipping to change at line 284
else else
parameters.except(*EXCLUDE_PARAMETERS) parameters.except(*EXCLUDE_PARAMETERS)
end end
end end
# Checks if we should perform parameters wrapping. # Checks if we should perform parameters wrapping.
def _wrapper_enabled? def _wrapper_enabled?
return false unless request.has_content_type? return false unless request.has_content_type?
ref = request.content_mime_type.ref ref = request.content_mime_type.ref
_wrapper_formats.include?(ref) && _wrapper_key && !request.parameters.ke y?(_wrapper_key) _wrapper_formats.include?(ref) && _wrapper_key && !request.parameters.ke y?(_wrapper_key)
rescue ActionDispatch::Http::Parameters::ParseError
false
end end
def _perform_parameter_wrapping def _perform_parameter_wrapping
wrapped_hash = _wrap_parameters request.request_parameters wrapped_hash = _wrap_parameters request.request_parameters
wrapped_keys = request.request_parameters.keys wrapped_keys = request.request_parameters.keys
wrapped_filtered_hash = _wrap_parameters request.filtered_parameters.sli ce(*wrapped_keys) wrapped_filtered_hash = _wrap_parameters request.filtered_parameters.sli ce(*wrapped_keys)
# This will make the wrapped hash accessible from controller and view. # This will make the wrapped hash accessible from controller and view.
request.parameters.merge! wrapped_hash request.parameters.merge! wrapped_hash
request.request_parameters.merge! wrapped_hash request.request_parameters.merge! wrapped_hash
# This will display the wrapped hash in the log file. # This will display the wrapped hash in the log file.
request.filtered_parameters.merge! wrapped_filtered_hash request.filtered_parameters.merge! wrapped_filtered_hash
rescue ActionDispatch::Http::Parameters::ParseError
# swallow parse error exception
end end
end end
end end
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)