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 e36491cb Oops
e36491cb is described below

commit e36491cb7fa46b93e37f2b95424dfedfdc8cb522
Author: sebbASF <[email protected]>
AuthorDate: Tue Mar 28 08:52:36 2023 +0100

    Oops
---
 www/members/mailing_lists.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/members/mailing_lists.cgi b/www/members/mailing_lists.cgi
index c54240af..c7c25c09 100755
--- a/www/members/mailing_lists.cgi
+++ b/www/members/mailing_lists.cgi
@@ -43,8 +43,8 @@ query = ENV['QUERY_STRING']
 # Only allow letters in the query string so it is safe to use
 if query =~ %r{^filter=([a-zA-Z]+)$}
   # Convert xmU into m.......U..x
+  letters = []
   if $1.length > 1
-    letters = []
     $1.split('').sort_by(&:upcase).each_cons(2).with_index do |(a, b), i|
       letters << a if i == 0
       (b.upcase.ord - a.upcase.ord - 1).times {letters << '.'}

Reply via email to