[xwiki/xwiki-commons] c32a7a: XCOMMONS-3371: $jsontool and $escapetool should es...
Branch: refs/heads/stable-17.4.x Home: https://github.com/xwiki/xwiki-commons Commit: c32a7ad8819da785975768b508932f739346128e https://github.com/xwiki/xwiki-commons/commit/c32a7ad8819da785975768b508932f... Author: Michael Hamann <[email protected]> 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
participants (1)
-
XWiki Notifications