diff options
author | Go MAEDA <maeda@farend.jp> | 2018-07-02 02:36:22 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-07-02 02:36:22 +0000 |
commit | 51fdc31e1c4943895a25eed89dc0e9c3dc4e5a88 (patch) | |
tree | b727206e1909dccaee05dd83df6be1a3ce649197 /app/models/attachment.rb | |
parent | ef864bed28e5ce09c1bc43ecb414c96a7e4a3996 (diff) | |
download | redmine-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.rb | 2 |
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 |