This is an automated email from the ASF dual-hosted git repository.
sebb 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 6a7360b Allow for .sig as well as .asc attachment
6a7360b is described below
commit 6a7360b2469283e37cde4c6d3e057cee16ae23d0
Author: Sebb <[email protected]>
AuthorDate: Thu Oct 18 10:59:16 2018 +0100
Allow for .sig as well as .asc attachment
---
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 64d1f15..d61fcb2 100644
--- a/www/secretary/workbench/models/message.rb
+++ b/www/secretary/workbench/models/message.rb
@@ -109,7 +109,7 @@ class Message
return [] unless attachments
attachments.
reject {|attachment| SIG_MIMES.include?(attachment[:mime]) and
- (not attachment[:name] or attachment[:name] !~ /\.pdf\.asc$/)}.
+ (not attachment[:name] or attachment[:name] !~ /\.pdf\.(asc|sig)$/)}.
map {|attachment| attachment[:name]}.
select {|name| name != 'signature.asc'}
end