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 2403ed8 handle case where name is frozen
2403ed8 is described below
commit 2403ed8260a3009eecca346c3e90f496e995df51
Author: Sam Ruby <[email protected]>
AuthorDate: Tue Dec 12 15:39:19 2017 -0500
handle case where name is frozen
---
www/secretary/workbench/models/message.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/secretary/workbench/models/message.rb
b/www/secretary/workbench/models/message.rb
index 78e2a13..bebbb67 100644
--- a/www/secretary/workbench/models/message.rb
+++ b/www/secretary/workbench/models/message.rb
@@ -29,7 +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')
+ name = name.dup.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]>'].