Jump to content


Photo

Error when Embedding Image with Quote in URL


When I try to embed an image in a post (the URL ends in .png), I get this error:

You are not allowed to use that image extension on this community.


It turns out that the image in question had a quote character in the file name. The image worked after removing the quote.

Should the URL parser take quotes and other "weird" characters into account?

Thanks.

Status: Not a Bug
Version: 3.3.4
Fixed In: 0


4 Comments

Updating Status to: Awaiting Feedback

What was the exact URL to the image please? I presume by quote character you mean inverted commas? (")
I mean single quote, or apostrophe (').

Error link: https://dl.dropbox.c.../test'2.png (it automatically encoded the link in this post, but if you replace the filename with test'2.png instead of test%272.png, embedding the image gives an error)
Working link: https://dl.dropbox.c...227529/test.png

If the URL contains an apostrophe and is not properly url-encoded it will give that error.
Updating Status to: Confirmed - General

Whilst I can't reproduce the original issue as reported there is still an issue here. The behavior I am seeing is what happened when you tried to embed the link in this tracker entry comment. I suspect Matt's 3.4 editor changes may have caught this already however.
Updating Status to: Not a Bug

' is a reserved character in a URL and should be percent encoded to %27