Details
-
Bug
-
Resolution: Fixed
-
Major
-
1.7 M2
-
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//