Skip to content

Commit 1578c72

Browse files
committed
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
1 parent dee033f commit 1578c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/attachment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def create_diskfile(filename, directory=nil, &block)
571571
name = "#{timestamp}_#{ascii}"
572572
File.open(
573573
File.join(path, name),
574-
flags: File::CREAT | File::EXCL | File::BINARY | File::WRONLY,
574+
flags: File::CREAT | File::EXCL | File::WRONLY,
575575
binmode: true,
576576
&block
577577
)

0 commit comments

Comments
 (0)