aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-01-20 03:24:27 +0000
committerterry%mozilla.org <>2000-01-20 03:24:27 +0000
commit72a25ca7a281804faa378f384f3a1ddfadaae6e6 (patch)
tree9ab9238eb32700d21b7444c79873b7cbf27837fd /editkeywords.cgi
parentAdded a way to disable a user. (diff)
downloadbugzilla-72a25ca7a281804faa378f384f3a1ddfadaae6e6.tar.gz
bugzilla-72a25ca7a281804faa378f384f3a1ddfadaae6e6.tar.bz2
bugzilla-72a25ca7a281804faa378f384f3a1ddfadaae6e6.zip
Let's outlaw whitespace in keywords.
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-xeditkeywords.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/editkeywords.cgi b/editkeywords.cgi
index 72fe78bf0..3443a5c3f 100755
--- a/editkeywords.cgi
+++ b/editkeywords.cgi
@@ -88,8 +88,8 @@ sub Validate ($$) {
PutTrailer($localtrailer);
exit;
}
- if ($name =~ /,/) {
- print "You may not use commas in a keyword name.\n";
+ if ($name =~ /[\s,]/) {
+ print "You may not use commas or whitespace in a keyword name.\n";
print "Please press <b>Back</b> and try again.\n";
PutTrailer($localtrailer);
exit;