1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/test
Dwayne Litzenberger 808cad2bb4 Fix ActiveSupport::JSON encoding of control characters [\x00-\x1f]
According to RFC 4627, only the following Unicode code points are
allowed unescaped in JSON:

  unescaped = %x20-21 / %x23-5B / %x5D-10FFFF

However, ActiveSupport::JSON did not escape the range %x00-1f.  This caused
parse errors when trying to decode the resulting output.

[#3345 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2009-12-23 11:46:06 -08:00
..
autoloading_fixtures Checkin failing test case related to load once paths 2006-12-24 14:41:29 +00:00
core_ext Add test for TimeWithZone#to_i with wrapped DateTime 2009-12-15 08:28:24 -06:00
dependencies Checkin failing test case related to load once paths 2006-12-24 14:41:29 +00:00
fixtures Reorganize autoloads: 2009-12-02 20:01:08 -08:00
json Fix ActiveSupport::JSON encoding of control characters [\x00-\x1f] 2009-12-23 11:46:06 -08:00
xml_mini Added CDATA support to the XmlMini LibXML engine, adjusted whitespace handling to closer match that of the REXML engine, and added a LibXML engine test 2009-10-15 10:54:30 +13:00
abstract_unit.rb Avoid adding component lib/ to load path multiple times 2009-11-09 23:28:36 -06:00
autoload.rb Reorganize autoloads: 2009-12-02 20:01:08 -08:00
benchmarkable_test.rb Get rid of stray require again 2009-10-15 17:39:19 -07:00
buffered_logger_test.rb Fix dependencies revealed by testing in isolation 2009-04-22 18:54:13 -07:00
caching_test.rb Ruby 1.9.2: fix broken to_ary expectation 2009-11-13 12:42:49 -08:00
callback_inheritance_test.rb Callbacks, DeprecatedCallbacks = NewCallbacks, Callbacks 2009-10-12 22:15:43 -05:00
callbacks_test.rb Callbacks, DeprecatedCallbacks = NewCallbacks, Callbacks 2009-10-12 22:15:43 -05:00
clean_backtrace_test.rb Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH] 2008-11-22 18:06:08 +01:00
clean_logger_test.rb Explicit test dependencies 2009-03-28 23:56:14 -07:00
concern_test.rb AS::Concern redefines "include" to lazy include modules as dependencies 2009-05-29 17:03:23 -05:00
dependencies_test.rb Symbol#to_proc is not needed for Ruby >= 1.8.7 2009-11-09 22:16:51 +01:00
deprecation_test.rb Modify backtrace test to take implementations with slightly different backtrace output into consideration. 2009-12-13 10:40:00 -05:00
flush_cache_on_private_memoization_test.rb activesupport -> active_support 2009-09-13 02:45:37 -07:00
gzip_test.rb Added a test for Gzip 2008-06-02 17:42:10 -05:00
i18n_test.rb No need for test stub 2009-11-14 03:27:18 -08:00
inflector_test.rb Fix that irregular plural inflections should not be double-pluralized: 'people'.pluralize should return 'people' not 'peoples'. 2009-08-09 20:28:57 -07:00
inflector_test_cases.rb ensure Inflector.camelize works with symbols [#2856 state:resolved] 2009-07-01 12:14:34 -07:00
isolation_test.rb Lookup ruby bin name too 2009-09-14 00:51:31 -05:00
memoizable_test.rb Escaping symbol passed into Memoizable's flush_cache for query methods to allow them to be cleared 2009-09-28 14:48:13 +13:00
message_encryptor_test.rb Repair time dependencies 2009-11-14 11:37:06 -08:00
message_verifier_test.rb Repair time dependencies 2009-11-14 11:37:06 -08:00
multibyte_chars_test.rb Work around assert_raise limitation 2009-11-08 22:02:57 -08:00
multibyte_conformance.rb Move multibyte test helpers to a separate file and make the conformance tests run again. 2008-09-21 17:37:38 +02:00
multibyte_test_helpers.rb Set encoding of the multibyte test helpers file to UTF-8 so the strings can be read by Ruby 1.9. 2008-09-21 18:31:15 +02:00
multibyte_unicode_database_test.rb Require mocha >= 0.9.0 for AS tests 2008-11-22 19:19:12 -08:00
multibyte_utils_test.rb Ditto 2009-11-09 16:59:38 -08:00
notifications_test.rb Notifications: synchronous fanout queue pushes events to subscribers rather than having them concurrently pull 2009-11-29 02:30:35 -08:00
option_merger_test.rb Explicit test dependencies 2009-03-28 23:56:14 -07:00
ordered_hash_test.rb Fix OrderedHash#replace 2009-11-05 21:17:13 +13:00
ordered_options_test.rb Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ActiveSupport [#238 state:resolved] 2008-06-03 13:32:53 -05:00
rescuable_test.rb Add tests for ActiveSupport::Rescuable. Use ActiveSupport::Rescuable in ActionController::Base. 2008-10-04 22:13:50 +01:00
secure_random_test.rb 1.8 compatibility for random_number method on SecureRandom. 2008-10-04 21:11:30 +02:00
string_inquirer_test.rb Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. 2009-03-08 13:11:58 -07:00
test_test.rb Revert "Get AS TestCase off deprecated callbacks" 2009-10-14 16:12:57 -07:00
time_zone_test.rb Remove 'core' fluff. Hookable ActiveSupport.load_all! 2009-05-20 18:12:44 -07:00
ts_isolated.rb Give useful test:isolated failures 2009-11-02 17:50:11 -08:00
whiny_nil_test.rb Ruby 1.9.2: disallow explicit coercion via method_missing. Only give friendly nil errors for Array and Active Record methods. 2009-11-13 12:25:54 -08:00