Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
78db8be8
Commit
78db8be8
authored
Mar 16, 2003
by
bbaetz%acm.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 197180 - Long comment names not flagged as an error
r,a=justdave
parent
91c7a131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
editcomponents.cgi
editcomponents.cgi
+13
-1
No files found.
editcomponents.cgi
View file @
78db8be8
...
...
@@ -123,7 +123,7 @@ sub EmitFormElements ($$$$$)
$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=
64
NAME=\"component\" VALUE=\""
.
value_quote
(
$component
)
.
"\">\n"
;
print
" <INPUT TYPE=HIDDEN NAME=\"product\" VALUE=\""
.
value_quote
(
$product
)
.
"\"></TD>\n"
;
...
...
@@ -386,6 +386,12 @@ if ($action eq 'new') {
exit
;
}
if
(
length
(
$component
)
>
64
)
{
print
"Sorry, the name of a component is limited to 64 characters."
;
PutTrailer
(
$localtrailer
);
exit
;
}
my
$description
=
trim
(
$::FORM
{
description
}
||
''
);
if
(
$description
eq
''
)
{
...
...
@@ -710,6 +716,12 @@ if ($action eq 'update') {
my
$initialqacontact
=
trim
(
$::FORM
{
initialqacontact
}
||
''
);
my
$initialqacontactold
=
trim
(
$::FORM
{
initialqacontactold
}
||
''
);
if
(
length
(
$component
)
>
64
)
{
print
"Sorry, the name of a component is limited to 64 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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment