Skip to content

Livetable on the homepage of forums fails to display results if a forum contains a dot in its name #19

@lucaa

Description

@lucaa
  • Create a forum called "About this wiki..."
  • The list of forums on the homepage of the application is not loading anymore

The cause of the issue is that, in page ForumCode.GetForumsJson , the velocity that displays the results interprets wiki syntax: the dot is escaped in the name of the document by a backslash, which is escaped in json with another backslash, which results in 2 backslashes one next to another .
The 2 backslashes is the wiki syntax for newline and when wiki syntax is interpreted, this results in a newline in the middle of a json string, which breaks the json (invalid).

Adding parameter wiki='false' to the velocity macro fixes the issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions