mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
6a1a1e5536
commit
bdac94e990
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Fixed proper form-encoded parameter parsing for requests with "Content-Type: application/x-www-form-urlencoded; charset=utf-8" (note the presence of a charset directive) [DHH]
|
||||
|
||||
* Add route_name_path method to generate only the path for a named routes. For example, map.person will add person_path. [Nicholas Seckar]
|
||||
|
||||
* Avoid naming collision among compiled view methods. [Jeremy Kemper]
|
||||
|
|
|
@ -36,7 +36,7 @@ class CGI #:nodoc:
|
|||
if boundary = extract_multipart_form_boundary(content_type)
|
||||
@multipart = true
|
||||
@params = read_multipart(boundary, content_length)
|
||||
elsif content_type.blank? || content_type.downcase != 'application/x-www-form-urlencoded'
|
||||
elsif content_type.blank? || content_type.downcase !~ %r{^application/x-www-form-urlencoded.*}
|
||||
read_params(method, content_length)
|
||||
@params = {}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue