public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Ensure json tests run in stable.


git-svn-id: 
http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@7747 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
NZKoz (author)
Fri Oct 05 03:07:23 -0700 2007
commit  4c458f810545026f6db9558e5f0af7c9a470bac9
tree    9af1702f0e3e516a1f9d0ed6111274da11d15860
parent  ebe8bc3c59e4e75a1b9c0839adb3d85f9b213553
...
23
24
25
26
27
 
 
 
 
28
29
30
31
 
32
33
34
...
23
24
25
 
 
26
27
28
29
30
31
32
 
33
34
35
36
0
@@ -23,12 +23,14 @@ module ActiveSupport
0
         "\n" => '\n',
0
         "\r" => '\r',
0
         "\t" => '\t',
0
- '"' => '\"',
0
- '\\' => '\\\\'
0
+ '"' => '\"',
0
+ '\\' => '\\\\',
0
+ '<' => '\\074',
0
+ '>' => '\\076'
0
       }
0
       
0
       define_encoder String do |string|
0
- '"' + string.gsub(/[\010\f\n\r\t"\\]/) { |s|
0
+ '"' + string.gsub(/[\010\f\n\r\t"\\<>]/) { |s|
0
           ESCAPED_CHARS[s]
0
         }.gsub(/([\xC0-\xDF][\x80-\xBF]|
0
                  [\xE0-\xEF][\x80-\xBF]{2}|

Comments

    No one has commented yet.