whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Delimit email address in case of invisible chars
Date Mon, 08 Feb 2021 23:53:24 GMT
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 b3b03c4  Delimit email address in case of invisible chars
b3b03c4 is described below

commit b3b03c40f0ff78a4f0ed367cef5a8dbcb613a8ca
Author: Sebb <sebb@apache.org>
AuthorDate: Mon Feb 8 23:53:14 2021 +0000

    Delimit email address in case of invisible chars
---
 www/secretary/workbench/views/actions/icla.json.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/secretary/workbench/views/actions/icla.json.rb b/www/secretary/workbench/views/actions/icla.json.rb
index 9f626cb..efc6670 100644
--- a/www/secretary/workbench/views/actions/icla.json.rb
+++ b/www/secretary/workbench/views/actions/icla.json.rb
@@ -10,7 +10,7 @@
 # extract message
 message = Mailbox.find(@message)
 
-_warn "Invalid From address #{@from}" unless @from =~ /\A("?[\s\w]+"?\s+<)?\w+@apache\.org>?\z/
+_warn "Invalid From address '#{@from}'" unless @from =~ /\A("?[\s\w]+"?\s+<)?\w+@apache\.org>?\z/
 
 # extract file extension
 fileext = File.extname(@selected).downcase


Mime
View raw message