From bdac94e990162d711529922cf32adca2f0836905 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 30 Jun 2006 05:19:15 +0000 Subject: 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 --- actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/cgi_ext') diff --git a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb index 1204c57f00..1b275501cb 100644 --- a/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb +++ b/actionpack/lib/action_controller/cgi_ext/raw_post_data_fix.rb @@ -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 -- cgit v1.2.3