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

]]] in a link parameter breaks link syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 8.2-rc-1, 7.4.5
    • Syntax - xwiki/2.1
    • None
    • Unknown

    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

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

            Dates

              Created:
              Updated: