Branch: refs/heads/stable-16.10.x
Home:
https://github.com/xwiki/xwiki-commons
Commit: b68d9406122f48bec394fbab53fb0a818de01976
https://github.com/xwiki/xwiki-commons/commit/b68d9406122f48bec394fbab53fb0…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2025-09-03 (Wed, 03 Sep 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-3410: $jsontool and $escapetool should escape < to allow safe usage in
<script> tags (#1433)
* Escape < similar to { in JSONTool and EscapeTool.
* Apply the same escaping also to EscapeTool.json.
(cherry picked from commit 4824193a5ba3e720a0c5290b215368fa074f274d)
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-commons/settings/notifications