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
243 243

  
244 244
  def self.latest_attach(attachments, filename)
245 245
    attachments.sort_by(&:created_on).reverse.detect {
246
      |att| att.filename.downcase == filename.downcase
246
      |att| att.filename.downcase == filename.downcase.gsub(/%20/,' ');
247 247
     }
248 248
  end
249 249

  
(3-3/5)