umbraco.library.NiceUrl does not escape # (%23) etc
When requesting a URL from umbraco.library.NiceUrl where there is a # in the page title, it gives back a URL with a # in it. This is obviously wrong, because # denotes a fragment, and is interpreted by the user agent (browser) and not the server. Instead, it should escape this with %23.
It obviously does some cleaning up already - / is simply omitted, for example, and spaces are replaced with -.
Note that this issue breaks the link given in the properties tab of a page as well. And I've seen it break the links to one of the books in the documentation section of umbraco.org.
umbraco.library.NiceUrl does not escape # (%23) etc
When requesting a URL from umbraco.library.NiceUrl where there is a # in the page title, it gives back a URL with a # in it. This is obviously wrong, because # denotes a fragment, and is interpreted by the user agent (browser) and not the server. Instead, it should escape this with %23.
See http://www.ietf.org/rfc/rfc2396.txt, section 2.4.3.
It obviously does some cleaning up already - / is simply omitted, for example, and spaces are replaced with -.
Note that this issue breaks the link given in the properties tab of a page as well. And I've seen it break the links to one of the books in the documentation section of umbraco.org.
Umbraco version: 4.0.2.1
ASP.NET version: 2.0.50727
Windows/IIS: XP/5.1
Well, this post kind of proves my point - I put a hash (character %23) in the title of the post, and the title just got cut off at that point
Adding the following setting to umbracoSettings.config works:
in <settings>, <requestHandler> put
<char org="#">hash</char>
is working on a reply...