Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5107

URLs are not escaped in link labels if link meta data is missing

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      The following HTML input:

      <p>
      <!--startwikilink:http://www.xwiki.org-->
      <span class="wikiexternallink">
        <a href="http://www.xwiki.org">http://www.xwiki.org</a>
      </span>
      <!--stopwikilink-->
      </p>
      

      generates:

      [[http:~~/~~/www.xwiki.org>>http://www.xwiki.org]]
      

      If the link meta data is missing:

      <p>
        <a href="http://www.xwiki.org">http://www.xwiki.org</a>
      </p>
      

      then the generated XWiki 2.0 syntax is:

      [[http://www.xwiki.org>>http://www.xwiki.org]]
      

      This is currently rendered as nested links by the XHTML renderer and breaks the WYSIWYG editor. Note that links without meta data can be the result of copy&pasting links from a web page to the WYSIWYG editor.

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: