ActionDispatch::RemoteIp::GetIp#calculate_ipto only check for spoofing attacks if both
Strong parameters should permit nested number as key.
Fix regex used to detect URI schemes in
redirect_toto be consistent with RFC 3986.
assert_redirected_tofailure message for protocol-relative URLs.
Fix an issue where router can't recognize downcased url encoding path.
Fix custom flash type definition. Misusage of the
_flash_typesclass variable caused an error when reloading controllers with custom flash types.
Ricardo de Cillo
Do not break params filtering on
Separate Action View completely from Action Pack.
Development mode exceptions are rendered in text format in case of XHR request.
Fix an issue where :if and :unless controller action procs were being run before checking for the correct action in the :only and :unless options.
Fix an issue where
assert_dom_not_equalwere ignoring the passed failure message argument.
Allow REMOTE_ADDR, HTTP_HOST and HTTP_USER_AGENT to be overridden from the environment passed into
Fix an issue where Journey was failing to clear the named routes hash when the routes were reloaded and since it doesn't overwrite existing routes then if a route changed but wasn't renamed it kept the old definition. This was being masked by the optimised url helpers so it only became apparent when passing an options hash to the url helper.
Skip routes pointing to a redirect or mounted application when generating urls using an options hash as they aren't relevant and generate incorrect urls.
MissingHelperErrorout of the
Fix an issue where rails raise exception about missing helper where it should throw
LoadError. When helper file exists and only loaded file from this helper does not exist rails should throw LoadError instead of
ActionDispatch::ParamsParser#parse_formatted_parametersto rewind body input stream on parsing json params.
Yuri Bol, Paul Nikitochkin
Ignore spaces around delimiter in Set-Cookie header.
Remove deprecated Rails application fallback for integration testing, set
Carlos Antonio da Silva
Remove deprecated constants from Action Controller:
ActionController::AbstractRequest => ActionDispatch::Request ActionController::Request => ActionDispatch::Request ActionController::AbstractResponse => ActionDispatch::Response ActionController::Response => ActionDispatch::Response ActionController::Routing => ActionDispatch::Routing ActionController::Integration => ActionDispatch::Integration ActionController::IntegrationTest => ActionDispatch::IntegrationTest
Carlos Antonio da Silva
Mime::Type.parsewhen bad accepts header is looked up. Previously it was setting
request.formatswith an array containing a
nilvalue, which raised an error when setting the controller formats.
:actionfrom routing scope and assign endpoint if both
:actionare present. The endpoint assignment only occurs if there is no
:topresent in the options hash so should only affect routes using the shorthand syntax (i.e. endpoint is inferred from the path).
Yves Senn, Andrew White
ActionView extracted from ActionPack
Piotr Sarnacki, Łukasz Strzałkowski
Fix removing trailing slash for mounted apps #3215
Please check 4-0-stable for previous changes.