Commit 21440ad5 authored by jocuri%softhome.net's avatar jocuri%softhome.net

Patch for bug 182375: Do not permit flags with spaces or commas; patch by…

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.
parent b892bd58
......@@ -444,6 +444,7 @@ sub validateID {
sub validateName {
$::FORM{'name'}
&& $::FORM{'name'} !~ /[ ,]/
&& length($::FORM{'name'}) <= 50
|| ThrowUserError("flag_type_name_invalid", { name => $::FORM{'name'} });
}
......
......@@ -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" %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment