Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Undo condition change made in [2345] to prevent normal parameters arr…

…iving as StringIO.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 0b1abc3360706268618dabcb1868fb0406d997aa 1 parent 0bd1185
Nicholas Seckar seckar authored
2  actionpack/CHANGELOG
View
@@ -1,5 +1,7 @@
*SVN*
+* Undo condition change made in [2345] to prevent normal parameters arriving as StringIO.
+
* Tolerate consecutive delimiters in query parameters. #2295 [darashi@gmail.com]
* Streamline render process, code cleaning. Closes #2294. [skae]
2  actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
View
@@ -91,7 +91,7 @@ def CGIMethods.get_typed_value(value)
# test most frequent case first
if value.is_a?(String)
value
- elsif value.respond_to?(:content_type)
+ elsif value.respond_to?(:content_type) && ! value.content_type.blank?
# Uploaded file
unless value.respond_to?(:full_original_filename)
class << value
Please sign in to comment.
Something went wrong with that request. Please try again.