summaryrefslogtreecommitdiffstats
path: root/app/models/attachment.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-07-02 02:36:22 +0000
committerGo MAEDA <maeda@farend.jp>2018-07-02 02:36:22 +0000
commit51fdc31e1c4943895a25eed89dc0e9c3dc4e5a88 (patch)
treeb727206e1909dccaee05dd83df6be1a3ce649197 /app/models/attachment.rb
parentef864bed28e5ce09c1bc43ecb414c96a7e4a3996 (diff)
downloadredmine-51fdc31e1c4943895a25eed89dc0e9c3dc4e5a88.tar.gz
redmine-51fdc31e1c4943895a25eed89dc0e9c3dc4e5a88.zip
"thumbnail" macro may break filename attribute of the attachment (#29038).
Patch by Toru Takahashi. git-svn-id: http://svn.redmine.org/redmine/trunk@17428 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/attachment.rb')
-rw-r--r--app/models/attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/attachment.rb b/app/models/attachment.rb
index 47955c0b1..6795f602e 100644
--- a/app/models/attachment.rb
+++ b/app/models/attachment.rb
@@ -155,7 +155,7 @@ class Attachment < ActiveRecord::Base
end
def title
- title = filename.to_s
+ title = filename.dup
if description.present?
title << " (#{description})"
end