Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • randomguy3 5 posts 0 karma points
    Jun 26, 2009 @ 12:58
    randomguy3
    0

    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

  • randomguy3 5 posts 0 karma points
    Jun 26, 2009 @ 13:00
    randomguy3
    0

    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

  • randomguy3 5 posts 0 karma points
    Jun 26, 2009 @ 13:04
    randomguy3
    0

    Adding the following setting to umbracoSettings.config works:

    in <settings>, <requestHandler> put

    <char org="#">hash</char>

Please Sign in or register to post replies

Write your reply to:

Draft