Jump to content

Recommended Posts

Posted

I just had this problem trying to link to Navani's Notebook on the Coppermind.

Correct: http://coppermind.net/wiki/Navani%27s_notebook

Broken: http://coppermind.net/wiki/Navani's_notebook

  • Type out a URL with a %27 in it, the substitution for the Apostrophe.

    a. For example connect http:// and coppermind.net/wiki/Navani%27s_notebook into a URL. (If I posted it all as one string, it would get auto-converted. So I split it.)

  • Preview it.

    a. The hyperlink in the preview will work, but

    b. The text in the edit box has been changed, with %27 converted into the ' character.

  • Preview it again, or post it again.

    a. The hyperlink doesn't work correctly now.

2b looks like the part where things go wrong.
Posted

Yes, the WYSIWYG editor infers URLs in a bad way, leaving everyone annoyed. You can't even turn it off D:

Posted

Yes, the WYSIWYG editor infers URLs in a bad way, leaving everyone annoyed. You can't even turn it off D:

PS: speaking of apostrophes, you've got an extra one in you sig's "mind's".

Posted (edited)

I wasn't using WYSIWYG, and still had this bug.

From a technical standpoint, I don't understand why it's bothering to convert % codes in posts we make. I thought % codes were only used in URLs, and the converting is done by the web server when it handles the request.

Maybe it's some overactive anti-XSS security feature? If it's not just a bug.

Edited by Morsk
Posted (edited)

I can post the URL once and have it work. What goes wrong is if I edit or preview a post with one of those URLs. It comes out wrong the second time, and has to be manually corrected every edit or preview.

It's not a problem for little posts, but it would be a problem for a large FAQ that contained some of these links, to have the maintainer have to fix them on every edit.

Edited by Morsk
Posted

That's interesting. Apparently what happens when you edit a post containing that, the url tag becomes url=undefined, and so the link breaks. Very uncool. I don't like that at all.

Posted (edited)

I was over-complicating it when I used URLs as the example. You can make a post with some of this

%27 %27 %27 %27 %27 %27 %27

and then preview and post, or post and edit, anything like that. The first time through they're fine, but the second time through they're converted

' ' ' ' ' ' '

Edited by Morsk

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...