Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-647

]]] in a link parameter breaks link syntax

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      The string ]]] in a link parameter is not properly escaped during XWiki 2.1 syntax rendering.

      For example, transforming

      [[Link label>>https://www.xwiki.org||data-foo="bar~]~]~]"]]
      

      into XDOM (or annotatedxhtml/1.0) and back gives

      [[Link label>>https://www.xwiki.org||data-foo="bar~]]]"]] 
      

      which is not equivalent, as this closes the link in the middle of the parameter. This is because the fix for XRENDERING-459 only adds a single escape character before ]] which is not enough.

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: