Skip to content

Commit

Permalink
XWIKI-21194: Improve escaping of error message in ConfigurableClass
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Aug 2, 2023
1 parent f617877 commit 0f367aa
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,12 @@ $xwiki.jsfx.use('js/xwiki/actionbuttons/actionButtons.js', true)
#showHeading($appName, $headingShowing)

{{error}}
{{translation key="xe.admin.configurable.noObjectOfConfigurationClassFound" parameters="$objClass.getName(), $app.getFullName()"/}}
#set($escapedObjClassName =
$services.rendering.escape($escapetool.java($objClass.getName()), 'xwiki/2.1'))
#set($translationEscapedAppName =
$services.rendering.escape($escapetool.java($app.getFullName()), 'xwiki/2.1'))
{{translation key="xe.admin.configurable.noObjectOfConfigurationClassFound"
parameters="~"$escapedObjClassName~", ~"$translationEscapedAppName~""/}}
{{/error}}

#else
Expand Down

0 comments on commit 0f367aa

Please sign in to comment.