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
feb2db26
Commit
feb2db26
authored
Nov 08, 2002
by
myk%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug 178800: fixes taint failure in graphical charts with Perl 5.6.0
r=gerv a=justdave
parent
12da0dd5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
report.cgi
report.cgi
+11
-0
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+7
-0
No files found.
report.cgi
View file @
feb2db26
...
@@ -109,6 +109,17 @@ $columns{'target_milestone'} = "bugs.target_milestone";
...
@@ -109,6 +109,17 @@ $columns{'target_milestone'} = "bugs.target_milestone";
# so that we always select 3 items in the query.
# so that we always select 3 items in the query.
$columns
{
''
}
=
"42217354"
;
$columns
{
''
}
=
"42217354"
;
# Validate the values in the axis fields or throw an error.
!
$row_field
||
(
$columns
{
$row_field
}
&&
trick_taint
(
$row_field
))
||
ThrowCodeError
(
"report_axis_invalid"
,
{
fld
=>
"x"
,
val
=>
$row_field
});
!
$col_field
||
(
$columns
{
$col_field
}
&&
trick_taint
(
$col_field
))
||
ThrowCodeError
(
"report_axis_invalid"
,
{
fld
=>
"y"
,
val
=>
$col_field
});
!
$tbl_field
||
(
$columns
{
$tbl_field
}
&&
trick_taint
(
$tbl_field
))
||
ThrowCodeError
(
"report_axis_invalid"
,
{
fld
=>
"z"
,
val
=>
$tbl_field
});
my
@axis_fields
=
(
$row_field
,
$col_field
,
$tbl_field
);
my
@axis_fields
=
(
$row_field
,
$col_field
,
$tbl_field
);
my
@selectnames
=
map
(
$columns
{
$_
},
@axis_fields
);
my
@selectnames
=
map
(
$columns
{
$_
},
@axis_fields
);
...
...
template/en/default/global/code-error.html.tmpl
View file @
feb2db26
...
@@ -176,6 +176,13 @@
...
@@ -176,6 +176,13 @@
[% ELSIF error == "request_queue_group_invalid" %]
[% ELSIF error == "request_queue_group_invalid" %]
The group field <em>[% group FILTER html %]</em> is invalid.
The group field <em>[% group FILTER html %]</em> is invalid.
[% ELSIF error == "report_axis_invalid" %]
<em>[% variables.val FILTER html %]</em> is not a valid value for
[%+ IF variables.fld == "x" %]the horizontal axis
[%+ ELSIF variables.fld == "y" %]the vertical axis
[%+ ELSIF variables.fld == "z" %]the multiple tables/images
[%+ ELSE %]a report axis[% END %] field.
[% ELSIF error == "token_generation_error" %]
[% ELSIF error == "token_generation_error" %]
Something is seriously wrong with the token generation system.
Something is seriously wrong with the token generation system.
...
...
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