Description

In 1.5 its not possible to have a slash in a page name, by escaping the slash as %2f. This used to work in 1.3.

Steps to reproduce

  1. Try to create this page: <%2fa>

  2. You get a page named "<%2fa>" instead of "</a>"

Example

Here is a page named </a> in 1.3 wiki:

Details

This wiki.

Workaround

Use 1.3.

Discussion

In 1.3 the code that handle urls in request.py first split the url with "/", then unquote and decoded each part, thus allowing to have any character in a path component by escaping it. The original motivation for the splitting was to fix situation where different components use different encoding.

Aside from that: / is the subpage delimiter, so page names should not contain that character except when meaning a sub page. See file system: you also can't have a file with a "/" (or \ on win32) in it.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/Can'tUseSlashInPageName (last edited 2008-03-18 14:46:39 by JohannesBerg)