Images with ] character in filename don't display properly

Ok, I removed the ] and now the image works – thanks very much. I’m still confused as to how it got there in the first place and why it doesn’t appear in other images.

It is odd because that text should come from the filename. Let me see what happens with a filename I intentionally add a ] character to:

![pic]|550x404](upload://xyEF7z3PW8gPseTwSnNbsakqy1G.jpg)

yes that definitely causes it, the filename was

pic].jpg cc @vinothkannans – so I would strip [ and ] from filenames when building the alt text please.

4 Likes

Thank you very much for sticking with me and solving this issue.

4 Likes

This is now fixed :pizza:

https://github.com/discourse/discourse/commit/f674b9e86ee609cef538168661f8719e8572ca13

7 Likes

This topic was automatically closed after 22 hours. New replies are no longer allowed.