* do not truncate projects descriptions
* encode attachment filenames to utf8
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1100
e93f8b46-1217-0410-a6f0-
8f06a7374b81
read_attribute(:name)[0..29]\r
end\r
\r
- def description\r
- read_attribute(:description).blank? ? read_attribute(:name) : read_attribute(:description)[0..254]\r
- end\r
- \r
def identifier\r
read_attribute(:name).underscore[0..19].gsub(/[^a-z0-9\-]/, '-')\r
end\r
end\r
\r
def original_filename\r
- filename\r
+ MantisMigrate.encode(filename)\r
end\r
\r
def content_type\r
end\r
end\r
\r
- private\r
def self.encode(text)\r
@ic.iconv text\r
rescue\r