Cannot upload file with ++ in name

A pretty obscure bug, took me a while to find out what was going on.

Uploading a file with two consecutive plus characters in the filename (like blah++blah.png) fails miserably: the progress seems stuck on 0% but that turns out to be because of a Javascript error. Probably the ++ makes a regex go nuts.

4 Likes

Was able to repro. Will have a look :slight_smile:

EDIT: Opened a PR

https://github.com/discourse/discourse/pull/7442

8 Likes

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