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
38fac175
Commit
38fac175
authored
Jul 07, 2002
by
myk%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 155700: detaints bug ID in ValidateBugID so it doesn't fail taint checks.
2rx=bbaetz
parent
ef7c3883
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
CGI.pl
CGI.pl
+3
-2
No files found.
CGI.pl
View file @
38fac175
...
@@ -276,8 +276,9 @@ sub ValidateBugID {
...
@@ -276,8 +276,9 @@ sub ValidateBugID {
$id
=
trim
(
$id
);
$id
=
trim
(
$id
);
# If the ID isn't a number, it might be an alias, so try to convert it.
# If the ID isn't a number, it might be an alias, so try to convert it.
if
(
$id
!~
/^[1-9][0-9]*$/
)
{
my
$alias
=
$id
;
$id
=
BugAliasToID
(
$id
);
if
(
!
detaint_natural
(
$id
))
{
$id
=
BugAliasToID
(
$alias
);
if
(
!
$id
)
{
if
(
!
$id
)
{
my
$html_id
=
html_quote
(
$_
[
0
]);
my
$html_id
=
html_quote
(
$_
[
0
]);
my
$alias_specific_message
=
Param
(
"usebugaliases"
)
?
my
$alias_specific_message
=
Param
(
"usebugaliases"
)
?
...
...
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