Details
-
Bug
-
Resolution: Fixed
-
Major
-
17.3.0, 16.10.8
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
The following sequence of events:
beginDocument beginTable beginTableRow beginTableCell beginGroup beginParagraph beginFormat [NONE] [[style]=[color: rgb(6,125,23);]] onWord [hello] onNewLine endFormat [NONE] [[style]=[color: rgb(6,125,23);]] onSpecialSymbol [!] onSpecialSymbol [!] onSpecialSymbol [!] onSpecialSymbol [!] onSpace onWord [same] onSpace onWord [cell] endParagraph endGroup endTableCell endTableRow endTable endDocument
Produced with the following Confluence XHTML syntax:
<table>
<tr><td><span style="color: rgb(6,125,23);">hello<br /></span>!!!! same cell</td></tr>
</table>
Leads to the following erroneous XWiki syntax:
|(((
(% style="color: rgb(6,125,23);" %)hello
(%%)!!!! same cell
)))
It is erroneous because the first pair of ! are not escaped.
Same goes for pipe characters (replacing !! with |)
This incorrectly produces a table inside the table, instead of showing the eclamation marks or the pipe characters.