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
d0e08d06
Commit
d0e08d06
authored
Mar 01, 2002
by
bbaetz%student.usyd.edu.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 107743 - post_bug.cgi doesn't properly validate parameters
r=gerv, justdave
parent
1d29501c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
post_bug.cgi
post_bug.cgi
+11
-3
No files found.
post_bug.cgi
View file @
d0e08d06
...
...
@@ -39,7 +39,6 @@ sub sillyness {
$zz
=
%::
COOKIE
;
$zz
=
%::
components
;
$zz
=
%::
versions
;
$zz
=
@::legal_bug_status
;
$zz
=
@::legal_opsys
;
$zz
=
@::legal_platform
;
$zz
=
@::legal_priority
;
...
...
@@ -122,7 +121,12 @@ if (Param("useqacontact")) {
}
if
(
exists
$::FORM
{
'bug_status'
})
{
if
(
!
UserInGroup
(
"canedit"
)
&&
!
UserInGroup
(
"canconfirm"
))
{
# Ignore the given status, so that we can set it to UNCONFIRMED
# or NEW, depending on votestoconfirm if either the given state was
# unconfirmed (so that a user can't override the below check), or if
# the user doesn't have permission to change the default status anyway
if
(
$::FORM
{
'bug_status'
}
==
$::unconfirmedstate
||
(
!
UserInGroup
(
"canedit"
)
&&
!
UserInGroup
(
"canconfirm"
)))
{
delete
$::FORM
{
'bug_status'
};
}
}
...
...
@@ -142,6 +146,10 @@ if (!exists $::FORM{'target_milestone'}) {
$::FORM
{
'target_milestone'
}
=
FetchOneColumn
();
}
if
(
!
Param
(
'letsubmitterchoosepriority'
))
{
$::FORM
{
'priority'
}
=
Param
{
'defaultpriority'
};
}
GetVersionTable
();
CheckFormField
(
\%::
FORM
,
'product'
,
\
@::legal_product
);
CheckFormField
(
\%::
FORM
,
'version'
,
\
@
{
$::versions
{
$::FORM
{
'product'
}}});
...
...
@@ -152,7 +160,7 @@ CheckFormField(\%::FORM, 'bug_severity', \@::legal_severity);
CheckFormField
(
\%::
FORM
,
'priority'
,
\
@::legal_priority
);
CheckFormField
(
\%::
FORM
,
'op_sys'
,
\
@::legal_opsys
);
CheckFormFieldDefined
(
\%::
FORM
,
'assigned_to'
);
CheckFormField
(
\%::
FORM
,
'bug_status'
,
\
@::legal_bug_status
);
CheckFormField
(
\%::
FORM
,
'bug_status'
,
[
$::unconfirmedstate
,
'NEW'
]
);
CheckFormFieldDefined
(
\%::
FORM
,
'bug_file_loc'
);
CheckFormField
(
\%::
FORM
,
'component'
,
\
@
{
$::components
{
$::FORM
{
'product'
}}});
...
...
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