Error when Embedding Image with Quote in URL
Submitted Yuxi, Aug 17 2012 01:31 PM | Last updated Aug 28 2012 11:50 AM
When I try to embed an image in a post (the URL ends in .png), I get this error:
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.
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
What was the exact URL to the image please? I presume by quote character you mean inverted commas? (")
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.
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.
' is a reserved character in a URL and should be percent encoded to %27