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

Filter conflict: external links can be rendered two times

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 B1, 1.0 RC2
    • Fix Version/s: 1.0 RC3
    • Labels:
      None
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: