This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 11d3b86 hande unicode attachment names
11d3b86 is described below
commit 11d3b86ca9d439245e1c3618e610191caead5439
Author: Sam Ruby <[email protected]>
AuthorDate: Fri Dec 8 11:32:33 2017 -0500
hande unicode attachment names
---
www/secretary/workbench/models/message.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/secretary/workbench/models/message.rb
b/www/secretary/workbench/models/message.rb
index 4cc72f3..78e2a13 100644
--- a/www/secretary/workbench/models/message.rb
+++ b/www/secretary/workbench/models/message.rb
@@ -29,6 +29,7 @@ class Message
def find(name)
name = name[1...-1] if name =~ /<.*>/
name = name[2..-1] if name.start_with? './'
+ name.force_encoding('utf-8')
headers = @headers[:attachments].find do |attach|
attach[:name] == name or attach['Content-ID'].to_s == '<' + name + '>'
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].