-
-
Notifications
You must be signed in to change notification settings - Fork 556
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XWIKI-19805: Improve parameter escaping in IconPickerMacro
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Velocity code is building a CSS selector that is injected in JavaScript so you need two levels of escaping:
Also note that this change caused a regression, XWIKI-20033, but it's actually not the fault of the fix but how the icon picker macro is used in AppWithinMinutes. This shows that the macro was wrongly used without expecting the macro parameter to be escaped. We need to fix all the places where the icon picker macro is called.