diff options
author | Go MAEDA <maeda@farend.jp> | 2021-08-18 02:34:46 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-08-18 02:34:46 +0000 |
commit | 1578c7207bcd52c3089cc1d8ad0e7fb688d91fa3 (patch) | |
tree | 677e275cce90a36e21e6e919d13d0ba364cb940c /app | |
parent | dee033fac1828dc0b1e048956c74344603ac1716 (diff) | |
download | redmine-1578c7207bcd52c3089cc1d8ad0e7fb688d91fa3.tar.gz redmine-1578c7207bcd52c3089cc1d8ad0e7fb688d91fa3.zip |
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
Diffstat (limited to 'app')
-rw-r--r-- | app/models/attachment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb index c65c56722..8fba26eff 100644 --- a/app/models/attachment.rb +++ b/app/models/attachment.rb @@ -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 ) |