aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xweb/index.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/index.cgi b/web/index.cgi
index 9d9f1b92f..68e9dbc39 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: index.cgi,v 1.146 2007-06-22 13:39:10 matthew Exp $
+# $Id: index.cgi,v 1.147 2007-06-26 14:32:42 matthew Exp $
use strict;
require 5.8.0;
@@ -224,6 +224,7 @@ sub submit_problem {
push(@errors, 'Please enter a subject') unless $input{title} =~ /\S/;
push(@errors, 'Please enter some details') unless $input{detail} =~ /\S/;
push(@errors, 'Please enter your name') unless $input{name} =~ /\S/;
+ push(@errors, 'Please enter your full name - if you do not wish your name to be shown on the site, untick the box') if length($input{name}) < 5 || $input{name} !~ /\s/ || $input{name} =~ /\banon(ymous)?\b/i
if ($input{email} !~ /\S/) {
push(@errors, 'Please enter your email');
} elsif (!mySociety::Util::is_valid_email($input{email})) {