Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stleary/JSON-java
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 20260719
Choose a base ref
...
head repository: stleary/JSON-java
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 20260814
Choose a head ref
  • 6 commits
  • 6 files changed
  • 3 contributors

Commits on Jul 20, 2026

  1. Fix XML.unescape rejecting valid whitespace numeric character references

    XML.mustEscape() is shared by both XML.escape() (serialization) and
    XMLTokener.unescapeEntity() (deserialization). While the method's Javadoc
    and comment quote the W3C XML 1.0 valid-character range
    (#x9 | #xA | #xD | [#x20-#xD7FF] | ...), the implementation only checked
    [#x20-#xD7FF] in its range clause, omitting #x9/#xA/#xD.
    
    Although the ISO-control clause excluded those three codepoints, the
    negated range clause still marked them as 'must escape', so unescapeEntity()
    threw JSONException for the XML-allowed control characters TAB, LF and CR.
    
    This broke XML.unescape("&#10;") and XML.toJSONObject("<a>&#10;</a>"),
    both of which worked in v20251224 and regressed after #1045 (v20260522).
    
    Align the range clause with the W3C spec by explicitly allowing #x9, #xA
    and #xD, matching the comment that was already documented.
    
    Fixes #1059
    dong0713 committed Jul 20, 2026
    Configuration menu
    Copy the full SHA
    94854a1 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2026

  1. Merge pull request #1070 from dong0713/fix/xml-unescape-whitespace-co…

    …ntrol-chars
    
    Fix XML.unescape rejecting valid whitespace numeric character references
    stleary authored Jul 29, 2026
    Configuration menu
    Copy the full SHA
    b594a32 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2026

  1. Configuration menu
    Copy the full SHA
    392a352 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    22ab2fb View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2026

  1. pre-release-20260814 initial commit

    Sean Leary Sean Leary
    Sean Leary authored and Sean Leary committed Aug 14, 2026
    Configuration menu
    Copy the full SHA
    34efda6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1073 from stleary/pre-release-20260814

    20260814 prep for next release
    stleary authored Aug 14, 2026
    Configuration menu
    Copy the full SHA
    6c14048 View commit details
    Browse the repository at this point in the history
Loading