mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 23:39:23 +08:00

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.