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 6fc35d7c Detect bad proxy name
6fc35d7c is described below

commit 6fc35d7c785157db5ff0136023a2e4b61bec9168
Author: Sebb <s...@apache.org>
AuthorDate: Thu Feb 8 11:03:45 2024 +0000

    Detect bad proxy name
---
 www/members/proxy.cgi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/www/members/proxy.cgi b/www/members/proxy.cgi
index 6f806860..3f5b11d7 100755
--- a/www/members/proxy.cgi
+++ b/www/members/proxy.cgi
@@ -183,6 +183,9 @@ end
 
 # Emit a record of a user's submission - POST
 def emit_post(cur_mtg_dir, meeting, _)
+  # Detect missing/invalid proxy info (should not happen)
+  raise ArgumentError,"Invalid proxy name '#{@proxy}'" unless @proxy =~ 
%r{\A.+ \([a-z0-9-]+\)\z}
+
   _h3_ 'Proxy Assignment - Session Transcript'
 
   # collect data

Reply via email to