From fcdcd9b9fa2f6fe37d2481b1b201fd24bf5b37c6 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Mon, 4 Jul 2005 15:31:37 +0000 Subject: Hashes sent via multipart post should be converted to strings #1032 [me@julik.nl] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1664 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/cgi_ext/cgi_methods.rb') diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index dc1b1189b5..81bc4867de 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -70,7 +70,7 @@ class CGIMethods #:nodoc: # Value as part of a multipart request value.read elsif value.class == Array - value.collect { | e | e.respond_to?(:read) ? e.read : e } + value.collect { |v| CGIMethods.get_typed_value(v) } else # Standard value (not a multipart request) value.to_s -- cgit v1.2.3