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개의 좋아요

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

4개의 좋아요

This is now fixed :pizza:

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

7개의 좋아요

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