mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FIX: allow underscore in file extension while downloading the uploads.
This commit is contained in:
@ -344,6 +344,13 @@ describe UploadsController do
|
||||
expect(response.status).to eq(404)
|
||||
end
|
||||
|
||||
it "returns uploads with underscore in extension correctly" do
|
||||
fake_upload = upload_file("fake.not_image")
|
||||
get fake_upload.short_path
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
end
|
||||
|
||||
it "returns the right response when anon tries to download a file " \
|
||||
"when prevent_anons_from_downloading_files is true" do
|
||||
|
||||
|
Reference in New Issue
Block a user