OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29f2560
)
Attachment content-type is now chomped before being saved.
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 12 Aug 2007 14:32:07 +0000
(14:32 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sun, 12 Aug 2007 14:32:07 +0000
(14:32 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@617
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/models/attachment.rb
patch
|
blob
|
history
diff --git
a/app/models/attachment.rb
b/app/models/attachment.rb
index
b1a7c52
..
108baf9
100644
(file)
--- a/
app/models/attachment.rb
+++ b/
app/models/attachment.rb
@@
-38,7
+38,7
@@
class Attachment < ActiveRecord::Base
if @temp_file.size > 0
self.filename = sanitize_filename(@temp_file.original_filename)
self.disk_filename = DateTime.now.strftime("%y%m%d%H%M%S") + "_" + self.filename
- self.content_type = @temp_file.content_type
+ self.content_type = @temp_file.content_type
.chomp
self.filesize = @temp_file.size
end
end