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: More validation of vote link
Date Sun, 12 Nov 2017 18:30:01 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 b076829  More validation of vote link
b076829 is described below

commit b0768297f6de16497d2dc0cf8b4c6b3f8995a47e
Author: Craig L Russell <craig.russell@oracle.com>
AuthorDate: Sun Nov 12 10:29:53 2017 -0800

    More validation of vote link
---
 www/project/icla/views/actions/validate.json.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/www/project/icla/views/actions/validate.json.rb b/www/project/icla/views/actions/validate.json.rb
index 866ee51..dd24b4a 100644
--- a/www/project/icla/views/actions/validate.json.rb
+++ b/www/project/icla/views/actions/validate.json.rb
@@ -73,6 +73,14 @@ end
 # validate vote link
 if @votelink and not @votelink.empty?
 
+  # verify that the link refers to lists.apache.org message on the project list
+  if not @votelink=~ /.*lists\.apache\.org.*/
+    _error "Please link to a message via lists.apache.org"
+  end
+  if not @votelink=~ /.*#{pmc.mail_list}.apache\.org.*/
+    _error "Please link to a message with the results of the vote sent to the private list"
+  end
+
   # attempt to fetch the page
   if @votelink =~ /^https?:/i
     uri = URI.parse(@votelink)

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

Mime
View raw message