mirror of
https://github.com/redmine/redmine.git
synced 2026-07-01 00:18:56 +02:00
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@21193 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user