mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00: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:
parent
dee033fac1
commit
1578c7207b
@ -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
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user