Iframe Does Not Like Simple Quotes In Source Url

Description

If a foreign url contains a special character such as a single quote, the wikidot parser stops evaluating the source url at the first single quote.
Example:

How to Reproduce

[[iframe http://wiki.answers.com/Q/What_is_a_'wiki' 
width="99%" height="250"]]

Browsers

Not browser dependent.

Has bug

Works correctly

Workarounds

Use special characters in the link adress:

instead of the simple quotes ( ' ) use the combination of (% + hex code of quotes )

http://wiki.answers.com/Q/What_is_a_%27wiki%27

gives:

http://wiki.answers.com/Q/What_is_a_%27wiki%27

Other hint:
if you get problems with such special characters you have to specify the url with the %-sign and the (hex!- equivalent of ansi) chacracter-code instead of such special characters.
Example: [*//http://en.wikipedia.org/wiki/Rogue_(computer_game) Rogue] will not work because of the "ending" brackets.

test: [*//http://en.wikipedia.org/wiki/Rogue_(computer_game) Rogue]

If you detect such unusable characters than you should replace the character ")" with "%29"
(or opening bracket "(" with "%28")

[*http://en.wikipedia.org/wiki/Rogue_(computer_game%29 Rogue]

test: Rogue

Positiv: this workaround will work after the bug fix

Contact

gerdamigerdami. Please visit his/her userPage.

Rate this Bug

Rate the urgency of this bug. If you think it is more urgent and important than it's current rating suggests, rate it up.

rating: +1+x

Comments

Not a bug
GabrysGabrys 1210803459|%e %b %Y, %H:%M %Z|agohover

Hi,

with all the standards of encoding URIs, we shouldn't use apostrophes nor quotes in them. Percentage sign is just for this reason. You can encode any character with it.

unfold Not a bug by GabrysGabrys, 1210803459|%e %b %Y, %H:%M %Z|agohover
Re: Not a bug
gerdamigerdami 1210844503|%e %b %Y, %H:%M %Z|agohover

Sorry Gabrys,
You are thinking as an engineer, not as a end-user !

It's up to the parser to convert the bullshit code into a correct one.

However,
Best regards.

unfold Re: Not a bug by gerdamigerdami, 1210844503|%e %b %Y, %H:%M %Z|agohover
FIXED!
GabrysGabrys 1211379259|%e %b %Y, %H:%M %Z|agohover

This is fixed.

Only inline links don't allow bracket's now like:

http://en.wikipedia.org/wiki/Rogue_(computer_game)

But this is for this reason:

see here (http://www.wikidot.com/)

Cheers!

last edited on 1211800808|%e %b %Y, %H:%M %Z|agohover by gerdami + show more
unfold FIXED! by GabrysGabrys, 1211379259|%e %b %Y, %H:%M %Z|agohover
Re: FIXED!
gerdamigerdami 1211631605|%e %b %Y, %H:%M %Z|agohover

Thank you Gabrys,
On behalf of all idiot end-users like me.

unfold Re: FIXED! by gerdamigerdami, 1211631605|%e %b %Y, %H:%M %Z|agohover
Re: FIXED!
Helmuti_pdorfHelmuti_pdorf 1211699074|%e %b %Y, %H:%M %Z|agohover

I am confused now and think I am an idiot…

I do not understand the differences between the 2 examples…

What is now to use ? The percentage sign is fiine to use, but needs always an ascii-/code -table to know what to insert…

unfold Re: FIXED! by Helmuti_pdorfHelmuti_pdorf, 1211699074|%e %b %Y, %H:%M %Z|agohover
Re: FIXED!
gerdamigerdami 1211801379|%e %b %Y, %H:%M %Z|agohover

Helmut,
The ending ")" is not parsed in inline URL like http://en.wikipedia.org/wiki/Rogue_(computer_game)
But with this syntax

[http://en.wikipedia.org/wiki/Rogue_(computer_game) http://en.wikipedia.org/wiki/Rogue_(computer_game)]

it's ok: http://en.wikipedia.org/wiki/Rogue_(computer_game)

What is now to use ? The percentage sign is fine to use, but needs always an ascii-/code -table to know what to insert…

[url-with-quotes-or-parenthesis DisplayedLink]
… but the space will not work since it is the separator.

unfold Re: FIXED! by gerdamigerdami, 1211801379|%e %b %Y, %H:%M %Z|agohover
Re: FIXED!
Helmuti_pdorfHelmuti_pdorf 1211831140|%e %b %Y, %H:%M %Z|agohover

Thanks gerdami!

I feel realy as an idiot…. I believe we should write a BIG Glossary about Inline URL#s and their displayed Link connection in such cases…

What do youi mean with the separator ?

I understand this as the neccessarity to insert a %sign + code instead of the adress-url-space (Ascii 20 ?)

unfold Re: FIXED! by Helmuti_pdorfHelmuti_pdorf, 1211831140|%e %b %Y, %H:%M %Z|agohover
Re: FIXED!
gerdamigerdami 1212058756|%e %b %Y, %H:%M %Z|agohover

What do you mean with the separator ?

Sorry, delimiter !

The syntax for an external link is [url text] with a whitespace as a separator between url and text:
Wonderful world of Wikidot

[http://www.wikidot.com Wonderful world of Wikidot]

… the first whitespace between .com and Wonderful !

However, I found strange that the delimiter for the syntax for an internal link was
[[[link|text]]] with the vertical bar as the separator.


To come back to the topic, If the | was the delimiter for an external link, the whitespace would be allowed inside a user friendly url.

unfold Re: FIXED! by gerdamigerdami, 1212058756|%e %b %Y, %H:%M %Z|agohover
Add a new comment
page tags: fixed iframe url
page_revision: 7, last_edited: 1211441623|%e %b %Y, %H:%M %Z (%O ago)
Unless stated otherwise Content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.