Ver código fonte

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
tags/5.0.0
Go MAEDA 2 anos atrás
pai
commit
1578c7207b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      app/models/attachment.rb

+ 1
- 1
app/models/attachment.rb Ver arquivo

@@ -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
)

Carregando…
Cancelar
Salvar