Changeset 9113
- Timestamp:
- 03/28/08 19:55:31 (7 months ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_controller/request.rb (modified) (1 diff)
- trunk/actionpack/test/controller/request_test.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r9111 r9113 1 1 *SVN* 2 3 * Fixed that ActionController::Base#read_multipart would fail if boundary was exactly 10240 bytes #10886 [ariejan] 2 4 3 5 * Fixed HTML::Tokenizer (used in sanitize helper) didn't handle unclosed CDATA tags #10071 [esad, packagethief] trunk/actionpack/lib/action_controller/request.rb
r9020 r9113 586 586 params[name] = [content] 587 587 end 588 break if buf.size == 0589 588 break if content_length == -1 590 589 end trunk/actionpack/test/controller/request_test.rb
r9020 r9113 602 602 "ie_products[file]" => [ ie_file ], 603 603 "text_part" => [non_file_text_part] 604 }604 } 605 605 606 606 expected_output = { … … 745 745 end 746 746 747 def test_boundary_problem_file 748 params = process('boundary_problem_file') 749 assert_equal %w(file foo), params.keys.sort 750 751 file = params['file'] 752 foo = params['foo'] 753 754 if RUBY_VERSION > '1.9' 755 assert_kind_of File, file 756 else 757 assert_kind_of Tempfile, file 758 end 759 760 assert_equal 'file.txt', file.original_filename 761 assert_equal "text/plain", file.content_type 762 763 assert_equal 'bar', foo 764 end 765 747 766 def test_large_text_file 748 767 params = process('large_text_file')