Defect #10189 » unescape_inline_attachment_filename.patch
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 |