mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Undo condition change made in [2345] to prevent normal parameters arriving as StringIO.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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 @@ class CGIMethods #:nodoc:
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user