diff options
author | jocuri%softhome.net <> | 2004-12-09 18:15:11 +0100 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-12-09 18:15:11 +0100 |
commit | 21440ad5da22a7e3324e316f3654c8a2e1c4ffeb (patch) | |
tree | 9be8c56a61b90fd7a2e73976703d61e8389c5cd4 | |
parent | b892bd58a061d5acc09eb291c2e7b3a7f551157f (diff) | |
download | bugzilla-21440ad5da22a7e3324e316f3654c8a2e1c4ffeb.tar.gz bugzilla-21440ad5da22a7e3324e316f3654c8a2e1c4ffeb.tar.xz |
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.
-rwxr-xr-x | editflagtypes.cgi | 1 | ||||
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/editflagtypes.cgi b/editflagtypes.cgi index 8b51be326..a48dc7578 100755 --- a/editflagtypes.cgi +++ b/editflagtypes.cgi @@ -444,6 +444,7 @@ sub validateID { sub validateName { $::FORM{'name'} + && $::FORM{'name'} !~ /[ ,]/ && length($::FORM{'name'}) <= 50 || ThrowUserError("flag_type_name_invalid", { name => $::FORM{'name'} }); } diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index c92824ad3..79861b5f0 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -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" %] |