Project

General

Profile

Defect #10189 » unescape_inline_attachment_filename.patch

Jeff Fendley, 2013-12-03 23:56

View differences:

app/models/attachment.rb
255 255

  
256 256
  def self.latest_attach(attachments, filename)
257 257
    attachments.sort_by(&:created_on).reverse.detect {
258
      |att| att.filename.downcase == filename.downcase
258
      |att| att.filename.downcase == CGI.unescape(filename.downcase)
259 259
     }
260 260
  end
261 261

  
(4-4/5)