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

Filter conflict: external links can be rendered two times

    XMLWordPrintable

Details

    Description

      There are 2 radeox filters that output links, the URLFIlter and LinkFilter. The URLFilter recognizes textual links inside the document, and the LinkFilter processes wiki links.

      In the following example:

       [please visit http://www.w3.org/ >http://www.w3.org/]

      First the LinkFilter is executed, resulting in:

      <span class="wikilink> <a href="http://www.w3.org/">please visit http://www.w3.org/ </a></span>

      Then the URLFilter is executed, resulting in:

      <span class="wikilink> <a href="http://www.w3.org/">please visit <span class="nobr"><a href="http://www.w3.org/"http://www.w3.org/</a></span> </a></span>

      The URLFilter just checks that the URL isn't quoted, as an attribute, thus allowing the example above.

      The solution is a better matching pattern, which prevents such situations.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: