зеркало из https://github.com/mozilla/gecko-dev.git
Let's outlaw whitespace in keywords.
This commit is contained in:
Родитель
f9261ad8ac
Коммит
6d15fd3cc2
|
@ -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;
|
||||
|
|
|
@ -234,7 +234,7 @@ while (@row = FetchSQLData()) {
|
|||
Alert("Duplicate entry in keyworddefs for id $id");
|
||||
}
|
||||
$keywordids{$id} = 1;
|
||||
if ($name =~ /,/ || $name =~ /^\s/ || $name =~ /\s$/) {
|
||||
if ($name =~ /[\s,]/) {
|
||||
Alert("Bogus name in keyworddefs for id $id");
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче