From 803d03caeabb0998e4b07732bec08b4e99471f1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kr=C3=BCger?= Date: Sat, 6 Nov 2010 19:55:22 +0100 Subject: [PATCH] regproj.cgi: be more lax in the CAPTCHA check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Until now, we only accepted exactly the word 'sun' (case-insensitive) as the CAPTCHA value. At least 'the sun' should be valid, too, however, to avoid undue confusion... so allow it. Signed-off-by: Jan Krüger --- cgi/regproj.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/regproj.cgi b/cgi/regproj.cgi index 914025f..8751c1f 100755 --- a/cgi/regproj.cgi +++ b/cgi/regproj.cgi @@ -32,7 +32,7 @@ if ($cgi->param('mode')) { $name =~ /\.git$/ and $gcgi->err("Project name should not end with .git - I'll add that automagically."); - if (lc($cgi->param('mail')) ne lc('sun')) { + if ($cgi->param('mail') !~ /^(?:the )?sun$/i) { print "

Sorry, invalid captcha check.

"; exit; } -- 2.11.4.GIT