mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
e4881290be
When uploading an image file with dots in the filename we were splitting the string on dots and getting the last of the split items as the extension-less filename. However this did not work with filenames that have dots. We now just remove the extension using substr.