Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@21193 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/5.0.0
@@ -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 | |||
) |