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 0276eed  Revert "Allow for .sig as well as .asc attachment"
0276eed is described below

commit 0276eede56617c7cde861c61347f555f7e933a5f
Author: Sebb <[email protected]>
AuthorDate: Thu Oct 18 17:34:43 2018 +0100

    Revert "Allow for .sig as well as .asc attachment"
    
    This reverts commit 6a7360b2469283e37cde4c6d3e057cee16ae23d0.
---
 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 d61fcb2..64d1f15 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|sig)$/)}.
+        (not attachment[:name] or attachment[:name] !~ /\.pdf\.asc$/)}.
       map {|attachment| attachment[:name]}.
       select {|name| name != 'signature.asc'}
   end

Reply via email to