Skip to content

Commit 47eb8a5

Browse files
committed
XWIKI-19805: Improve parameter escaping in IconPickerMacro
1 parent 0b732f2 commit 47eb8a5

File tree

1 file changed

+2
-2
lines changed
  • xwiki-platform-core/xwiki-platform-icon/xwiki-platform-icon-ui/src/main/resources/IconThemesCode

1 file changed

+2
-2
lines changed

Diff for: xwiki-platform-core/xwiki-platform-icon/xwiki-platform-icon-ui/src/main/resources/IconThemesCode/IconPickerMacro.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@
200200
options['prefix'] = '$escapetool.javascript($xcontext.macro.params.prefix)';
201201
#end
202202
#if("$!xcontext.macro.params.id" != '')
203-
$('#${xcontext.macro.params.id}').xwikiIconPicker(options);
203+
$('#${escapetool.javascript(${xcontext.macro.params.id})}').xwikiIconPicker(options);
204204
#end
205205
#if("$!xcontext.macro.params.get('class')" != '')
206-
$('.${xcontext.macro.params.get('class')}').xwikiIconPicker(options);
206+
$('.${escapetool.javascript(${xcontext.macro.params.get('class')})}').xwikiIconPicker(options);
207207
#end
208208
});
209209
</script>

0 commit comments

Comments
 (0)