space_in_inline_image_filename.patch

Dicky Hadiyuwono, 2012-11-19 03:34

Download (777 Bytes)

View differences:

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