Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-2534

Provide a method to escape content passed to wiki macro list parameters

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 14.8
    • Velocity
    • None
    • Unknown

    Description

      Is is currently no easy to cleanly and safely escape the parameters passed to a wiki macro expecting a list.

      Currently:

      #set ($eval = $services.rendering.escape($escapetool.java($value), 'xwiki/2.1'))
      {{translation key="..." parameters="~"$eval~""/}}

      Proposed:

       {{translation key="..." parameters="$escapetool.xwiki21.parameterArray($value)"/}}

      Attachments

        Activity

          People

            mleduc Manuel Leduc
            mleduc Manuel Leduc
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: