1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Fix that binmode specified twice (#35539, #35720).

Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@21193 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2021-08-18 02:34:46 +00:00
parent dee033fac1
commit 1578c7207b

View File

@ -571,7 +571,7 @@ class Attachment < ActiveRecord::Base
name = "#{timestamp}_#{ascii}"
File.open(
File.join(path, name),
flags: File::CREAT | File::EXCL | File::BINARY | File::WRONLY,
flags: File::CREAT | File::EXCL | File::WRONLY,
binmode: true,
&block
)