chiark / gitweb /
Merge branch 'master' of /u/webstump/live/
[modbot-mtm.git] / sballot / cgi
index d328b9b979e86ddb5f44135fa74548cc55d381f1..b59ec43e53e5292c8ff2f86dbad0bcded5d7b8b0 100755 (executable)
@@ -18,6 +18,8 @@ BEGIN {
 
 use ModerationCommon;
 
+readsettings();
+
 sub fail ($) {
     my ($m)= @_;
     print header(-status=>500), start_html('Secret ballot - error'),
@@ -60,7 +62,7 @@ if (length $vote or length $ident or length $pw) {
     fail('bad password') if !defined $pw or $pw =~ m/[^0-9a-z]/;
     my $pwhash= hash($pw);
 
-    fail('bad vote') if $vote =~ m/[^0-9a-z]/;
+    fail('bad vote') if $vote =~ m/[^0-9a-z]/i;
     $vote =~ y/a-z/A-Z/;
 
     fail("invalid vote - consult administrator's instructions")