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 12731a1  Allow for possible meta-chars
12731a1 is described below

commit 12731a16db773f9180e649734370d03969c5f4e8
Author: Sebb <[email protected]>
AuthorDate: Fri Feb 19 23:48:21 2021 +0000

    Allow for possible meta-chars
---
 www/officers/acreq.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/officers/acreq.cgi b/www/officers/acreq.cgi
index 6394107..6a84ded 100755
--- a/www/officers/acreq.cgi
+++ b/www/officers/acreq.cgi
@@ -44,7 +44,7 @@ email = Array(query['email']).last
 if iclas == 'all'
   iclas = Hash[*iclas_txt.scan(/^notinavail:.*?:(.*?):(.*?):Signed CLA/).
     flatten.reverse]
-elsif iclas == '1' and email and iclas_txt =~ /^notinavail:.*?:(.*?):#{email}:/
+elsif iclas == '1' and email and iclas_txt =~ 
/^notinavail:.*?:(.*?):#{Regexp.escape(email)}:/
   iclas = {email => $1}
 else
   count = iclas ? iclas.to_i : 300 rescue 300

Reply via email to