Patch for bug 182375: Do not permit flags with spaces or commas; patch by Frédéric Buclin <LpSolit@netscape.net>, r=vladd, a=justdave.

git-svn-id: svn://10.0.0.236/trunk@166480 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jocuri%softhome.net 2004-12-09 09:16:08 +00:00
parent 14bfde7df9
commit 0adf3c1cd8
2 changed files with 3 additions and 1 deletions

View File

@ -444,6 +444,7 @@ sub validateID {
sub validateName {
$::FORM{'name'}
&& $::FORM{'name'} !~ /[ ,]/
&& length($::FORM{'name'}) <= 50
|| ThrowUserError("flag_type_name_invalid", { name => $::FORM{'name'} });
}

View File

@ -342,7 +342,8 @@
[% ELSIF error == "flag_type_name_invalid" %]
[% title = "Flag Type Name Invalid" %]
The name <em>[% name FILTER html %]</em> must be 1-50 characters long.
The name <em>[% name FILTER html %]</em> must be 1-50 characters long
and must not contain any spaces or commas.
[% ELSIF error == "flag_update_denied" %]
[% title = "Flag Modification Denied" %]