Permalink
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...
1 parent 0bd1185 commit 0b1abc3360706268618dabcb1868fb0406d997aa @seckar seckar committed Sep 27, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 actionpack/CHANGELOG
  2. +1 −1 actionpack/lib/action_controller/cgi_ext/cgi_methods.rb
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]
@@ -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

0 comments on commit 0b1abc3

Please sign in to comment.