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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
6133b826
Commit
6133b826
authored
Feb 02, 2000
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nothing was checking that the bug number you entered for a duplicate
bug was actually a legal bug number.
parent
d1f6ec73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
process_bug.cgi
process_bug.cgi
+9
-7
No files found.
process_bug.cgi
View file @
6133b826
...
...
@@ -358,27 +358,29 @@ SWITCH: for ($::FORM{'knob'}) {
CheckFormFieldDefined
(
\%::
FORM
,
'dup_id'
);
}
my
$num
=
trim
(
$::FORM
{
'dup_id'
});
if
(
$num
!~
/^[0-9]*$/
)
{
SendSQL
(
"SELECT bug_id FROM bugs WHERE bug_id = "
.
SqlQuote
(
$num
));
$num
=
FetchOneColumn
();
if
(
!
$num
)
{
print
"You must specify a bug number of which this bug is a\n"
;
print
"duplicate. The bug has not been changed.\n"
;
PutFooter
();
exit
;
}
if
(
defined
(
$::FORM
{
'id'
})
&&
$::FORM
{
'dup_id'
}
==
$::FORM
{
'id'
})
{
if
(
!
defined
(
$::FORM
{
'id'
})
||
$num
==
$::FORM
{
'id'
})
{
print
"Nice try, $::FORM{'who'}. But it doesn't really make sense to mark a\n"
;
print
"bug as a duplicate of itself, does it?\n"
;
PutFooter
();
exit
;
}
AppendComment
(
$
::FORM
{
'dup_id'
}
,
$::FORM
{
'who'
},
"*** Bug $::FORM{'id'} has been marked as a duplicate of this bug. ***"
);
AppendComment
(
$
num
,
$::FORM
{
'who'
},
"*** Bug $::FORM{'id'} has been marked as a duplicate of this bug. ***"
);
if
(
Param
(
'strictvaluechecks'
)
)
{
CheckFormFieldDefined
(
\%::
FORM
,
'comment'
);
}
$::FORM
{
'comment'
}
.=
"\n\n*** This bug has been marked as a duplicate of $
::FORM{'dup_id'}
***"
;
$::FORM
{
'comment'
}
.=
"\n\n*** This bug has been marked as a duplicate of $
num
***"
;
print
"<TABLE BORDER=1><TD><H2>Notation added to bug $
::FORM{'dup_id'}
</H2>\n"
;
system
(
"./processmail $
::FORM{'dup_id'}
$::FORM{'who'}"
);
print
"<TD><A HREF=\"show_bug.cgi?id=$
::FORM{'dup_id'}\">Go To BUG# $::FORM{'dup_id'}
</A></TABLE>\n"
;
print
"<TABLE BORDER=1><TD><H2>Notation added to bug $
num
</H2>\n"
;
system
(
"./processmail $
num
$::FORM{'who'}"
);
print
"<TD><A HREF=\"show_bug.cgi?id=$
num\">Go To BUG# $num
</A></TABLE>\n"
;
last
SWITCH
;
};
...
...
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