summaryrefslogtreecommitdiffstats
path: root/editflagtypes.cgi
diff options
context:
space:
mode:
authorjocuri%softhome.net <>2004-12-09 18:15:11 +0100
committerjocuri%softhome.net <>2004-12-09 18:15:11 +0100
commit21440ad5da22a7e3324e316f3654c8a2e1c4ffeb (patch)
tree9be8c56a61b90fd7a2e73976703d61e8389c5cd4 /editflagtypes.cgi
parentb892bd58a061d5acc09eb291c2e7b3a7f551157f (diff)
downloadbugzilla-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.
Diffstat (limited to 'editflagtypes.cgi')
-rwxr-xr-xeditflagtypes.cgi1
1 files changed, 1 insertions, 0 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'} });
}