Details
-
Bug
-
Resolution: Fixed
-
Major
-
10.6.1
-
Trivial
-
N/A
-
N/A
-
Description
When using the children macro for a document with (at least) a double quote in its name, the behaviour is incorrect:
- if a single double quote is present, some code with {{documentTree ... will be displayed
- if two double quotes are present, either no results are displayed or the children tree of the parent is displayed.
This is because, in the code of the children macro, the name of the current document is used as a parameter of the documentTree macro without escaping the double quotes (which is equally a parameter separator for the macro parameters). The line is here https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-index/xwiki-platform-index-tree/xwiki-platform-index-tree-macro/src/main/resources/XWiki/ChildrenMacro.xml#L164