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 11c074cf Allow for missing Subject
11c074cf is described below
commit 11c074cf1711426b359e25b52c1f387a797f22cf
Author: Sebb <[email protected]>
AuthorDate: Thu Dec 8 17:27:30 2022 +0000
Allow for missing Subject
---
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 562e2f92..35421bca 100644
--- a/www/secretary/workbench/models/message.rb
+++ b/www/secretary/workbench/models/message.rb
@@ -449,7 +449,7 @@ class Message
headers[:attachments] = attachments
# we also want to treat CLA requests as attachments
- elsif headers['Subject'].include?('CLA') &&
+ elsif headers['Subject']&.include?('CLA') &&
!headers['Subject'].include?('ICLA') &&
!headers['Subject'].include?('iCLA')
headers[:attachments] = [