Repost from http://www.wikidot.com/forum/t-183931/doc%3Alistpages-module#post-1229399
Hi, I have run into a bug in the ListPages module on our wiki.
One of the pages on our wiki has the title
.::Only |n Drea{{m}}s--
with the filename
only-in-dreams
Whenever the page appears in any of the ListPages listings (e.g. system:list-all-pages), all that's shown is something like
This is with the use of the %%title_linked%% variable.
The best temporary fix I have right now is to replace the %%title_linked%% variable with [http://path/to/wiki/%%fullname%% %%title%%] which got around the issue but it is still an ugly hack. Plus, now all the titleless pages are now showing up as:
because a hyperlink bracket-block doesn't accept the empty string as a valid link label.
I was wondering if either
a) Page titles can be escaped in ListPages to avoid errors
b) A new variable be implemented that would maybe escape the special characters in a title so that ListPages won't break when special characters are used in a page's title. Maybe call it %%safe_title_linked%%.
The lack of proper input sanitization is also a big concern…
On the other hand, the RecentChanges module does not have this issue.
You can see it in: http://www.scp-wiki.net/system:list-all-pages/p/12 (give or take a page).
Sign | wasn't allowed in link syntax name part [[[page| name]]].
In this situation page name like this .::Only |n Dreams— got it.
Its fixed now, please report if anything related to [[[page| name]]] stops working.
Bartłomiej Bąkowski @ Wikidot Inc.
';.;' TeRq (Write PM)
Thank you.