whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject [whimsy] branch master updated: allow mail with naked email address in From: field
Date Mon, 10 Apr 2017 19:53:51 GMT
This is an automated email from the ASF dual-hosted git repository.

clr 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  eabda6c   allow mail with naked email address in From: field
eabda6c is described below

commit eabda6c3e8d349ef26359a84e1f8e0d7f9ad64c6
Author: Craig L Russell <craig.russell@oracle.com>
AuthorDate: Mon Apr 10 12:53:43 2017 -0700

    allow mail with naked email address in From: field
---
 www/secmail/views/forms/icla.js.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/secmail/views/forms/icla.js.rb b/www/secmail/views/forms/icla.js.rb
index 02e8294..0b5c79d 100644
--- a/www/secmail/views/forms/icla.js.rb
+++ b/www/secmail/views/forms/icla.js.rb
@@ -84,8 +84,8 @@ class ICLA < React
   # on initial display, default various fields based on headers, and update
   # state 
   def componentDidMount()
-    name = @@headers.name
- 
+    name = @@headers.name || ''
+
     # reorder name if there is a single comma present
     parts = name.split(',')
     if parts.length == 2 and parts[1] !~ /^\s*(jr|ph\.d)\.?$/i

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message