Project

General

Profile

Defect #10189 » space_in_inline_image_filename.patch

Dicky Hadiyuwono, 2012-11-19 03:34

View differences:

app/models/attachment.rb Sun Nov 18 23:15:45 2012 +0000 → app/models/attachment.rb Mon Nov 19 09:26:43 2012 +0700
def self.latest_attach(attachments, filename)
attachments.sort_by(&:created_on).reverse.detect {
|att| att.filename.downcase == filename.downcase
|att| att.filename.downcase == filename.downcase.gsub(/%20/,' ');
}
end
(3-3/5)