diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-02 06:30:23 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-06-02 06:30:23 +0000 |
commit | 8cdf9126d3c3174cad74f8ae4a913f1940d3474a (patch) | |
tree | 62cff073130d1dcd3036210b7d1c5322233f84ef /actionpack/lib/action_controller/cgi_ext | |
parent | 6dea52c54e272b4592d1d157c8626003b03fcac1 (diff) | |
download | rails-8cdf9126d3c3174cad74f8ae4a913f1940d3474a.tar.gz rails-8cdf9126d3c3174cad74f8ae4a913f1940d3474a.tar.bz2 rails-8cdf9126d3c3174cad74f8ae4a913f1940d3474a.zip |
Rewind readable CGI params so others may reread them (such as CGI::Session when passing the session id in a multipart form). Closes #210.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/cgi_ext')
-rwxr-xr-x | actionpack/lib/action_controller/cgi_ext/cgi_methods.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb index 187516d576..be5923e8de 100755 --- a/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb +++ b/actionpack/lib/action_controller/cgi_ext/cgi_methods.rb @@ -183,7 +183,9 @@ class CGIMethods #:nodoc: elsif value.respond_to?(:read) # Value as part of a multipart request - value.read + result = value.read + value.rewind + result elsif value.class == Array value.collect { |v| CGIMethods.get_typed_value(v) } else |