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

Problems with rendering semicolon (:) followed by italic content

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.7
    • 1.7 M2
    • {Unused} Rendering 2.0
    • None
    • Unit

    Description

      Consider the following xwiki 2.0 snippet :

      My email address is://asiri.rathnayake@gmail.com//
      

      Current rendering mechanism fails to render this content because it miss-interprets is://asiri.rathnayake@gmail.com as a url. Since there is no known url with the scheme 'is', the rendering mechanism throws an exception.

      Further, if we consider the following xhtml content :

      <p>My email address is:<i>asiri.rathnayake@gmail.com</i></p>
      

      If we parse this content via xhtml->xwiki 2.0 parser, the generated xwiki content will be same as above. Since the xhtml snippet is legal, we need to make sure that the generated xwiki content is properly escaped as in :

      My email address is~://asiri.rathnayake@gmail.com//
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            asiri Asiri Rathnayake
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: