Not signed in (Sign In)

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorWillieWong
    • CommentTimeJul 11th 2010
     
    I did a quick search on the meta board and didn't find anything to this effect, so I hope this isn't a dupe.

    Quite often I see posts to links to Wikipedia in answers. For example, http://mathoverflow.net/questions/31354/theorems-in-euclidean-geometry-with-attractive-proofs-using-more-advanced-methods/31403#31403 And in the grand mathematical tradition of naming things after people, often there are apostrophes or whatnots in the links. And that sometimes isn't a problem. But sometimes, as in the link above, the apostrophe gets "doubly sanitized". Perhaps once from the Original Poster's browser (which sent %27 instead of '), and then once from MO's software (which converted the % in %27 into %25) and thus mangling the link.

    Question 1: I sincerely hope that MO is not doubly sanitizing the links itself. In fact I think that cannot possibly be the case as evident by the links that do work. But it'd be nice if someone can confirm that.

    Question 2: Is there anyway for the software to be intelligent about this sanitzing so already escaped characters do not get escaped once again?

    Question 3: If we cannot do it ourselves, is this something that should be reported to SO?
  1.  

    The double sanitizing is being done by a tweak I made to the javascript editor. See http://meta.stackexchange.com/questions/3085/auto-encode-weird-symbols-in-urls. The problem is that the server side implementation of markdown chokes on unencoded weird characters, so it's really important to encode them. I suppose the right thing to do is to modify the editor to only encode things that aren't already encoded. Does somebody know the right way to do this? If no, I'll try to come up with something.

    By the way, the editor will only mess with your URL if you create the link by clicking the link button or typing CTRL+L. You can always get the URL exactly as you like it by typing

    [link text](http://the/url/goes.here)

    • CommentAuthorWillieWong
    • CommentTimeJul 12th 2010
     

    Hum, a question: if I just paste the URL directly with neither the link button nor the link text syntax above, which behaviour is triggered? I ask because in comments, for example, there is no option to click the link button.