$initialqacontactid ? DBID_to_name ($initialqacontactid) : '');
print " <TH ALIGN=\"right\">Component:</TH>\n";
- print " <TD><INPUT SIZE=64 MAXLENGTH=255 NAME=\"component\" VALUE=\"" .
+ print " <TD><INPUT SIZE=64 MAXLENGTH=50 NAME=\"component\" VALUE=\"" .
value_quote($component) . "\">\n";
print " <INPUT TYPE=HIDDEN NAME=\"product\" VALUE=\"" .
value_quote($product) . "\"></TD>\n";
PutTrailer($localtrailer);
exit;
}
+ if (length($component) > 50) {
+ print "Sorry, the name of a component is limited to 50 characters.";
+ PutTrailer($localtrailer);
+ exit;
+ }
my $description = trim($::FORM{description} || '');
CheckComponent($product,$componentold);
+ if (length($component) > 50) {
+ print "Sorry, the name of a component is limited to 50 characters.";
+ PutTrailer($localtrailer);
+ exit;
+ }
+
# Note that the order of this tests is important. If you change
# them, be sure to test for WHERE='$component' or WHERE='$componentold'