<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/json, branch v3_3_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>Merge JSON 2.7.2 for Ruby 3.3 (#11541)</title>
<updated>2024-09-04T15:47:06+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-09-04T15:47:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4eb51dfc9e67683a1a03fdf302d5ddd95cad716a'/>
<id>4eb51dfc9e67683a1a03fdf302d5ddd95cad716a</id>
<content type='text'>
Merge JSON 2.7.2</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Merge JSON 2.7.2</pre>
</div>
</content>
</entry>
<entry>
<title>[flori/json] cosmetics</title>
<updated>2023-12-05T03:04:11+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-12-05T01:41:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=84654bfbba8df0f9eb6876051f8fe62f9a423bdd'/>
<id>84654bfbba8df0f9eb6876051f8fe62f9a423bdd</id>
<content type='text'>
https://github.com/flori/json/commit/39d6c854a4
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/flori/json/commit/39d6c854a4
</pre>
</div>
</content>
</entry>
<entry>
<title>[flori/json] The modern Ruby uses utf-8 encodings by default</title>
<updated>2023-12-05T03:04:10+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-12-05T01:41:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=abc3d124f79abae6ea9072fe6a3e70486c1fbe58'/>
<id>abc3d124f79abae6ea9072fe6a3e70486c1fbe58</id>
<content type='text'>
https://github.com/flori/json/commit/11b31210ac
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/flori/json/commit/11b31210ac
</pre>
</div>
</content>
</entry>
<entry>
<title>[flori/json] Fix JSON.dump overload combination</title>
<updated>2023-12-05T03:04:08+00:00</updated>
<author>
<name>tompng</name>
<email>tomoyapenguin@gmail.com</email>
</author>
<published>2023-12-04T10:18:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=70740deea793274f6e38a7b7fc3688aa709fd1d8'/>
<id>70740deea793274f6e38a7b7fc3688aa709fd1d8</id>
<content type='text'>
https://github.com/flori/json/commit/41c2712a3b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/flori/json/commit/41c2712a3b
</pre>
</div>
</content>
</entry>
<entry>
<title>[flori/json] Overload kwargs in JSON.dump</title>
<updated>2023-12-05T03:04:08+00:00</updated>
<author>
<name>Takashi Kokubun</name>
<email>takashikkbn@gmail.com</email>
</author>
<published>2023-12-01T17:53:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e6b35e8a6d70892037503d74cec2657b2b8bd116'/>
<id>e6b35e8a6d70892037503d74cec2657b2b8bd116</id>
<content type='text'>
https://github.com/flori/json/commit/936f280f9f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/flori/json/commit/936f280f9f
</pre>
</div>
</content>
</entry>
<entry>
<title>[flori/json] JSON.dump: handle unenclosed hashes regression</title>
<updated>2023-12-05T03:04:07+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2023-12-01T10:46:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a22ed8943859963c67533bb0edc13a27bfdac00c'/>
<id>a22ed8943859963c67533bb0edc13a27bfdac00c</id>
<content type='text'>
Fix: https://github.com/flori/json/issues/553

We can never add keyword arguments to `dump` otherwise
existing code using unenclosed hash will break.

https://github.com/flori/json/commit/8e0076a3f2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix: https://github.com/flori/json/issues/553

We can never add keyword arguments to `dump` otherwise
existing code using unenclosed hash will break.

https://github.com/flori/json/commit/8e0076a3f2
</pre>
</div>
</content>
</entry>
<entry>
<title>lib/helper only needs on flori/json repo</title>
<updated>2023-12-01T07:47:06+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-12-01T07:46:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7d142c08cb5b65e4ba110b116c41a8e5e3acc027'/>
<id>7d142c08cb5b65e4ba110b116c41a8e5e3acc027</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Manually merged from flori/json</title>
<updated>2023-12-01T07:47:06+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-12-01T06:51:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=86045fca24be94db7a9cbf7a9126e43c212dcc55'/>
<id>86045fca24be94db7a9cbf7a9126e43c212dcc55</id>
<content type='text'>
  &gt; https://github.com/flori/json/pull/525
  &gt; Rename escape_slash in script_safe and also escape E+2028 and E+2029

  Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;

  &gt; https://github.com/flori/json/pull/454
  &gt; Remove unnecessary initialization of create_id in JSON.parse()

  Co-authored-by: Watson &lt;watson1978@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  &gt; https://github.com/flori/json/pull/525
  &gt; Rename escape_slash in script_safe and also escape E+2028 and E+2029

  Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;

  &gt; https://github.com/flori/json/pull/454
  &gt; Remove unnecessary initialization of create_id in JSON.parse()

  Co-authored-by: Watson &lt;watson1978@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename escape_slash in script_safe and also escape E+2028 and E+2029</title>
<updated>2023-12-01T07:47:06+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2023-04-13T17:22:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0dfeb172968cdaefca2ab828c94d3e5f44d91f8f'/>
<id>0dfeb172968cdaefca2ab828c94d3e5f44d91f8f</id>
<content type='text'>
It is rather common to directly interpolate JSON string inside
&lt;script&gt; tags in HTML as to provide configuration or parameters to a
script.

However this may lead to XSS vulnerabilities, to prevent that 3
characters need to be escaped:

  - `/` (forward slash)
  - `U+2028` (LINE SEPARATOR)
  - `U+2029` (PARAGRAPH SEPARATOR)

The forward slash need to be escaped to prevent closing the script
tag early, and the other two are valid JSON but invalid Javascript
and can be used to break JS parsing.

Given that the intent of escaping forward slash is the same than escaping
U+2028 and U+2029, I chos to rename and repurpose the existing `escape_slash`
option.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is rather common to directly interpolate JSON string inside
&lt;script&gt; tags in HTML as to provide configuration or parameters to a
script.

However this may lead to XSS vulnerabilities, to prevent that 3
characters need to be escaped:

  - `/` (forward slash)
  - `U+2028` (LINE SEPARATOR)
  - `U+2029` (PARAGRAPH SEPARATOR)

The forward slash need to be escaped to prevent closing the script
tag early, and the other two are valid JSON but invalid Javascript
and can be used to break JS parsing.

Given that the intent of escaping forward slash is the same than escaping
U+2028 and U+2029, I chos to rename and repurpose the existing `escape_slash`
option.
</pre>
</div>
</content>
</entry>
<entry>
<title>[flori/json] Fix "unexpected token" offset for Infinity</title>
<updated>2023-12-01T07:47:06+00:00</updated>
<author>
<name>John Hawthorn</name>
<email>john@hawthorn.email</email>
</author>
<published>2022-09-20T00:56:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4b770527c2d4287456d03d645b595662f2501d67'/>
<id>4b770527c2d4287456d03d645b595662f2501d67</id>
<content type='text'>
Previously in the JSON::Ext parser, when we encountered an "Infinity"
token (and weren't allowing NaN/Infinity) we would try to display the
"unexpected token" at the character before.

https://github.com/flori/json/commit/42ac170712
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously in the JSON::Ext parser, when we encountered an "Infinity"
token (and weren't allowing NaN/Infinity) we would try to display the
"unexpected token" at the character before.

https://github.com/flori/json/commit/42ac170712
</pre>
</div>
</content>
</entry>
</feed>
