Branch: refs/heads/stable-16.10.x
Home:
https://github.com/xwiki/xwiki-commons
Commit: d4e045ebcaca908312cf0fcf84f18f2a6c32a7db
https://github.com/xwiki/xwiki-commons/commit/d4e045ebcaca908312cf0fcf84f18…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2025-07-14 (Mon, 14 Jul 2025)
Changed paths:
M
xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/EscapeTool.java
M
xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/JSONTool.java
M
xwiki-commons-core/xwiki-commons-velocity/src/test/java/org/xwiki/velocity/tools/EscapeToolTest.java
M
xwiki-commons-core/xwiki-commons-velocity/src/test/java/org/xwiki/velocity/tools/JSONToolTest.java
Log Message:
-----------
XCOMMONS-3371: $jsontool and $escapetool should escape { to increase compatibility with
XWiki syntax rendering
* Add { to the characters to escape in JSON, with custom unicode-based
escaping as standard escaping isn't available.
* Escape { in EscapeTool#javascript.
* Add/adapt test cases.
(cherry picked from commit e7961c62afd6230f206154991549e6543786e485)
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-commons/settings/notifications