You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2019/04/16 11:37:53 UTC

[whimsy] branch master updated: Case-blind check needed here

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 7e00fb3  Case-blind check needed here
7e00fb3 is described below

commit 7e00fb38fec3437635b531751cbc1c4644e4bd41
Author: Sebb <se...@apache.org>
AuthorDate: Tue Apr 16 12:37:08 2019 +0100

    Case-blind check needed here
---
 www/roster/views/actions/email_alt.json.rb     | 2 +-
 www/roster/views/actions/email_forward.json.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/roster/views/actions/email_alt.json.rb b/www/roster/views/actions/email_alt.json.rb
index 37ca081..22ec0ab 100644
--- a/www/roster/views/actions/email_alt.json.rb
+++ b/www/roster/views/actions/email_alt.json.rb
@@ -17,7 +17,7 @@ if @email_alt  # must agree with email_alt.js.rb
       _error "Invalid email address '#{mail}'"
       return
     end
-    if mail.end_with? 'apache.org'
+    if mail.downcase.end_with? 'apache.org'
       _error "Invalid email address '#{mail}' (must not be apache.org)"
       return
     end
diff --git a/www/roster/views/actions/email_forward.json.rb b/www/roster/views/actions/email_forward.json.rb
index 06f8567..91826ca 100644
--- a/www/roster/views/actions/email_forward.json.rb
+++ b/www/roster/views/actions/email_forward.json.rb
@@ -17,7 +17,7 @@ if @email_forward  # must agree with email_forward.js.rb
       _error "Invalid email address '#{mail}'"
       return
     end
-    if mail.end_with? 'apache.org'
+    if mail.downcase.end_with? 'apache.org'
       _error "Invalid email address '#{mail}' (must not be apache.org)"
       return
     end