Branch: refs/heads/backport-1433-to-stable-17.4.x
Home:
https://github.com/xwiki/xwiki-commons
Commit: f9100c516b7c7b3c29de2f2a95b0c1c6bfa6600e
https://github.com/xwiki/xwiki-commons/commit/f9100c516b7c7b3c29de2f2a95b0c…
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