Defect #10189 » unescape_inline_attachment_filename.patch
| app/models/attachment.rb | ||
|---|---|---|
|
def self.latest_attach(attachments, filename)
|
||
|
attachments.sort_by(&:created_on).reverse.detect {
|
||
|
|att| att.filename.downcase == filename.downcase
|
||
|
|att| att.filename.downcase == CGI.unescape(filename.downcase)
|
||
|
}
|
||
|
end
|
||