Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

This is not a public project

This project is archived and is in readonly mode.

Changeset [808cad2bb4f1534a66e20fb5bfedd09e3678e278] by Dwayne Litzenberger

Revision 808cad2bb4f1534a66e20fb5bfedd09e3678e278, committed by Dwayne Litzenberger · December 23rd, 2009 @ 07:46 PM

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
http://github.com/rails/rails/commit/808cad2bb4f1534a66e20fb5bfedd0...

2 changed files

  • M activesupport/lib/active_support/json/encoding.rb
  • M activesupport/test/json/encoding_test.rb